remaining data for unknown tags fixed

This commit is contained in:
honfika@gmail.com
2015-06-14 15:14:59 +02:00
parent bc87778779
commit 3356bf2b28
2 changed files with 6 additions and 5 deletions

View File

@@ -1478,10 +1478,10 @@ public class SWFInputStream implements AutoCloseable {
ret = new DefineExternalImage2(sis, data);
break;
default:
ret = new UnknownTag(swf, tag.getId(), data);
ret = new UnknownTag(sis, tag.getId(), data);
}
} else {
ret = new UnknownTag(swf, tag.getId(), data);
ret = new UnknownTag(sis, tag.getId(), data);
}
}

View File

@@ -16,7 +16,6 @@
*/
package com.jpexs.decompiler.flash.tags;
import com.jpexs.decompiler.flash.SWF;
import com.jpexs.decompiler.flash.SWFInputStream;
import com.jpexs.decompiler.flash.SWFOutputStream;
import com.jpexs.helpers.ByteArrayRange;
@@ -28,12 +27,14 @@ import java.io.IOException;
*/
public class UnknownTag extends Tag {
public UnknownTag(SWF swf, int id, ByteArrayRange data) {
super(swf, id, "Unknown", data);
public UnknownTag(SWFInputStream sis, int id, ByteArrayRange data) throws IOException {
super(sis.getSwf(), id, "Unknown", data);
readData(sis, data, 0, false, false, false);
}
@Override
public final void readData(SWFInputStream sis, ByteArrayRange data, int level, boolean parallel, boolean skipUnusualTags, boolean lazy) throws IOException {
sis.skipBytes(sis.available());
}
/**