From 9dd8b97a9e74387bed660d5a0dd2e0af0abb450a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 31 Dec 2022 16:30:45 +0100 Subject: [PATCH] Fixed DefineVideoStream playback --- .../com/jpexs/decompiler/flash/tags/DefineVideoStreamTag.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineVideoStreamTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineVideoStreamTag.java index 7fcb3e6b1..7f3373ea9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineVideoStreamTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineVideoStreamTag.java @@ -365,7 +365,7 @@ public class DefineVideoStreamTag extends DrawableTag implements BoundedTag, Tim if (ratio == -1) { ratio = 0; } - + Set keyFrames = getFrames().keySet(); int f = 0; @@ -470,7 +470,7 @@ public class DefineVideoStreamTag extends DrawableTag implements BoundedTag, Tim if (frames.containsKey(f)) { tags.add(frames.get(f)); } - tags.add(new PlaceObject2Tag(swf, false, 1, characterID, new MATRIX(), null, f, null, -1, null)); + tags.add(new PlaceObject2Tag(swf, f == 0 ? false : true, 1, f == 0 ? -1 : characterID, new MATRIX(), null, f, null, -1, null)); tags.add(new ShowFrameTag(swf)); } this.tags = new ReadOnlyTagList(tags);