From 731c3893e0f1f20e681e9a3406d8ff666df8010e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 12 Aug 2024 18:38:34 +0200 Subject: [PATCH] Fixed: Movies (DefineVideoStream) preview not working --- CHANGELOG.md | 1 + .../com/jpexs/decompiler/flash/tags/DefineVideoStreamTag.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77e3b09db..be6d8ba93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file. - [#2270] AS3 decompilation - unnnecessary local registers assignments as part of expressions when using optimization like `dup, setlocal N` instead of `setlocal N, getlocal N` +- Movies (DefineVideoStream) preview not working ## [21.0.1] - 2024-08-08 ### Added 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 e705e254d..10367edd0 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 @@ -467,7 +467,7 @@ public class DefineVideoStreamTag extends DrawableTag implements BoundedTag, Tim if (frames.containsKey(f)) { tags.add(frames.get(f)); } - tags.add(new PlaceObject2Tag(swf, f == 0 ? false : true, 1, f == 0 ? -1 : characterID, new MATRIX(), null, f, null, -1, null)); + tags.add(new PlaceObject2Tag(swf, f == 0 ? false : true, 1, f == 0 ? characterID : -1, new MATRIX(), null, f, null, -1, null)); tags.add(new ShowFrameTag(swf)); } this.tags = new ReadOnlyTagList(tags);