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);