#1138 All exported videos are the same file which may be broken

This commit is contained in:
honfika@gmail.com
2016-01-23 09:37:10 +01:00
parent f30e959a44
commit b9118e7418

View File

@@ -1773,7 +1773,10 @@ public final class SWF implements SWFContainerItem, Timelined {
public static void populateVideoFrames(int streamId, Iterable<Tag> tags, HashMap<Integer, VideoFrameTag> 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);