From 373df3ee225b9ae9c07783fb0d2a665acb9abbb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 23 Aug 2014 13:23:31 +0200 Subject: [PATCH] Issue #647 Fixed skipping FileAttributesTag with Parallel speedup on --- src/com/jpexs/decompiler/flash/SWFInputStream.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/SWFInputStream.java b/src/com/jpexs/decompiler/flash/SWFInputStream.java index 948265753..87df31371 100644 --- a/src/com/jpexs/decompiler/flash/SWFInputStream.java +++ b/src/com/jpexs/decompiler/flash/SWFInputStream.java @@ -1044,10 +1044,11 @@ public class SWFInputStream implements AutoCloseable { } else { switch (tag.getId()) { case FileAttributesTag.ID: //FileAttributes - if (tag instanceof TagStub) { - tag = resolveTag((TagStub) tag, level, parallel, skipUnusualTags); + Tag ft = tag; + if (ft instanceof TagStub) { + ft = resolveTag((TagStub) tag, level, parallel, skipUnusualTags); } - FileAttributesTag fileAttributes = (FileAttributesTag) tag; + FileAttributesTag fileAttributes = (FileAttributesTag) ft; if (fileAttributes.actionScript3) { isAS3 = true; }