diff --git a/trunk/src/com/jpexs/decompiler/flash/tags/DefineBitsJPEG3Tag.java b/trunk/src/com/jpexs/decompiler/flash/tags/DefineBitsJPEG3Tag.java index f25ea4445..bb3320a0d 100644 --- a/trunk/src/com/jpexs/decompiler/flash/tags/DefineBitsJPEG3Tag.java +++ b/trunk/src/com/jpexs/decompiler/flash/tags/DefineBitsJPEG3Tag.java @@ -52,15 +52,8 @@ public class DefineBitsJPEG3Tag extends ImageTag implements AloneTag { byte ba[] = new byte[image.getWidth() * image.getHeight()]; for (int i = 0; i < ba.length; i++) { ba[i] = (byte) 255; - } - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - SWFOutputStream sos = new SWFOutputStream(baos, SWF.DEFAULT_VERSION); - try { - sos.writeBytesZlib(ba); - } catch (IOException ex) { - Logger.getLogger(DefineBitsJPEG3Tag.class.getName()).log(Level.SEVERE, null, ex); - } - bitmapAlphaData = baos.toByteArray(); + } + bitmapAlphaData = ba; } else { bitmapAlphaData = new byte[0]; } diff --git a/trunk/src/com/jpexs/decompiler/flash/tags/DefineBitsJPEG4Tag.java b/trunk/src/com/jpexs/decompiler/flash/tags/DefineBitsJPEG4Tag.java index a2438c948..ea8a4a6a1 100644 --- a/trunk/src/com/jpexs/decompiler/flash/tags/DefineBitsJPEG4Tag.java +++ b/trunk/src/com/jpexs/decompiler/flash/tags/DefineBitsJPEG4Tag.java @@ -68,14 +68,7 @@ public class DefineBitsJPEG4Tag extends ImageTag implements AloneTag { for (int i = 0; i < ba.length; i++) { ba[i] = (byte) 255; } - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - SWFOutputStream sos = new SWFOutputStream(baos, SWF.DEFAULT_VERSION); - try { - sos.writeBytesZlib(ba); - } catch (IOException ex) { - Logger.getLogger(DefineBitsJPEG4Tag.class.getName()).log(Level.SEVERE, null, ex); - } - bitmapAlphaData = baos.toByteArray(); + bitmapAlphaData = ba; } else { bitmapAlphaData = new byte[0]; }