import swf from XML

This commit is contained in:
honfika@gmail.com
2015-01-17 21:35:58 +01:00
parent 7d09f30ae9
commit 1b8eab9414
16 changed files with 421 additions and 15 deletions

View File

@@ -695,7 +695,7 @@ public final class SWF implements SWFContainerItem, Timelined {
frameRate = sis.readUI8("frameRate");
frameCount = sis.readUI16("frameCount");
List<Tag> tags = sis.readTagList(this, 0, parallelRead, true, !checkOnly);
if (tags.get(tags.size() - 1).getId() == EndTag.ID) {
if (tags.size() > 0 && tags.get(tags.size() - 1).getId() == EndTag.ID) {
tags.remove(tags.size() - 1);
} else {
hasEndTag = false;
@@ -2201,6 +2201,8 @@ public final class SWF implements SWFContainerItem, Timelined {
}
public void clearAllCache() {
characters = null;
abcList = null;
clearImageCache();
clearScriptCache();
Cache.clearAll();