From b9118e74180809887f64c461d51c8fa1eb280b91 Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Sat, 23 Jan 2016 09:37:10 +0100 Subject: [PATCH] #1138 All exported videos are the same file which may be broken --- libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java index 0ec471555..8ea1c54cb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java @@ -1773,7 +1773,10 @@ public final class SWF implements SWFContainerItem, Timelined { public static void populateVideoFrames(int streamId, Iterable tags, HashMap output) { for (Tag t : tags) { if (t instanceof VideoFrameTag) { - output.put(((VideoFrameTag) t).frameNum, (VideoFrameTag) t); + VideoFrameTag videoFrameTag = (VideoFrameTag) t; + if (videoFrameTag.streamID == streamId) { + output.put(videoFrameTag.frameNum, (VideoFrameTag) t); + } } if (t instanceof DefineSpriteTag) { populateVideoFrames(streamId, ((DefineSpriteTag) t).getTags(), output);