mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
avformat/mov: Break out of inner loop early in mov_estimate_video_delay()
0.266 <- 0.299 sec (this is time ffmpeg so containing alot other things) Sample for benchmark was: ffmpeg -f rawvideo -pix_fmt yuv420p -s 32x32 -i /dev/zero -t 24:00:00.00 out.mp4 Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Reviewed-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit aba13dc13e5233545bdd06f514e0addbb0155c69) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
052edeec55
commit
6b65f46673
@ -3330,6 +3330,8 @@ static void mov_estimate_video_delay(MOVContext *c, AVStream* st) {
|
||||
if (pts_buf[j] < pts_buf[r]) {
|
||||
FFSWAP(int64_t, pts_buf[j], pts_buf[r]);
|
||||
++num_swaps;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
j = r;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user