From 21da3e0beb7c5a5e340929088bc91b5f64ff4ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 26 Dec 2022 14:15:57 +0100 Subject: [PATCH] Do not import multiple video frames into single SWF frame --- .../com/jpexs/decompiler/flash/importers/MovieImporter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/MovieImporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/MovieImporter.java index 1cdca167c..8d495b04d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/MovieImporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/MovieImporter.java @@ -313,8 +313,8 @@ public class MovieImporter { } int idealFrame = startFrame + (int) Math.floor(swf.frameRate * ftag.timeStamp / 1000.0); - if (idealFrame == importLastFrame) { - idealFrame++; + if (idealFrame <= importLastFrame) { + idealFrame = importLastFrame + 1; } int swfFrameNum = -1; ReadOnlyTagList tagList = timelined.getTags();