diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineBitsTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineBitsTag.java index 60c7d4185..faa187499 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineBitsTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineBitsTag.java @@ -101,7 +101,7 @@ public class DefineBitsTag extends ImageTag implements TagChangedListener { byte[] jttdata = swf.getJtt().jpegData; if (jttdata.length != 0) { int jttErrorLength = hasErrorHeader(jttdata) ? 4 : 0; - baos.write(jttdata, jttErrorLength, jttdata.length - jttErrorLength - 2); + baos.write(jttdata, jttErrorLength, jttdata.length - jttErrorLength); } int errorLength = hasErrorHeader(jpegData) ? 4 : 0;