mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-17 17:21:52 +00:00
Fixed: #2550 FLV video import - incorrect frame position caused by wrong FLV tag sort
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user