Fixed: #2550 FLV video import - incorrect frame position caused by wrong FLV tag sort

This commit is contained in:
Jindra Petřík
2025-11-09 18:53:07 +01:00
parent 68075ea9c5
commit 3e2656e6fd
3 changed files with 6 additions and 4 deletions

View File

@@ -264,17 +264,17 @@ public class MovieImporter {
if (newWidth <= 0 || newHeight <= 0) {
throw new IOException("Invalid dimension");
}
movie.setPauseRendering(true);
movie.codecID = videoData.codecId;
movie.width = newWidth;
movie.height = newHeight;
movie.videoFlagsDeblocking = DefineVideoStreamTag.DEBLOCKING_OFF;
movie.videoFlagsSmoothing = true;
movie.setPauseRendering(true);
videoTags.sort(new Comparator<FLVTAG>() {
@Override
public int compare(FLVTAG o1, FLVTAG o2) {
return Long.compare(o1.timeStamp, o2.tagType);
return Long.compare(o1.timeStamp, o2.timeStamp);
}
});