Fixed #1963 Reading CLIPEVENTFLAGS ClipActionEndFlag on SWF versions >= 6

This commit is contained in:
Jindra Petřík
2023-02-04 22:17:47 +01:00
parent b43f99efe6
commit 876ef22645
2 changed files with 3 additions and 1 deletions

View File

@@ -2026,7 +2026,7 @@ public class SWFInputStream implements AutoCloseable {
ret.clipEventPress = readUB(1, "clipEventPress") == 1;
ret.clipEventInitialize = readUB(1, "clipEventInitialize") == 1;
ret.clipEventData = readUB(1, "clipEventData") == 1;
if (swf.version >= 6) {
if (swf.version >= 6 && available() > 0) {
ret.reserved = (int) readUB(5, "reserved");
ret.clipEventConstruct = readUB(1, "clipEventConstruct") == 1;
ret.clipEventKeyPress = readUB(1, "clipEventKeyPress") == 1;