From 066a04a1131e3adcfb6751888984629b457556ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Sat, 23 Mar 2013 12:02:18 +0100 Subject: [PATCH] AS1/2 ignoring unknown opcodes --- .../src/com/jpexs/decompiler/flash/SWFInputStream.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java b/trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java index 4ff2738ec..1582f96ae 100644 --- a/trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java +++ b/trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java @@ -1413,10 +1413,14 @@ public class SWFInputStream extends InputStream { return new ActionThrow(); default: if (actionLength > 0) { - skip(actionLength); + //skip(actionLength); } - throw new UnknownActionException(actionCode); - //return new Action(actionCode, actionLength); + //throw new UnknownActionException(actionCode); + Action r=new ActionNop(); + r.actionCode=actionCode; + r.actionLength = actionLength; + return r; + //return new Action(actionCode, actionLength); } } }