You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ffplay: use 0 frame delay if redisplaying an already displayed frame
With the previous patches this finally fixes ticket #1707. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
3
ffplay.c
3
ffplay.c
@@ -1370,6 +1370,9 @@ retry:
|
|||||||
/* if duration of the last frame was sane, update last_duration in video state */
|
/* if duration of the last frame was sane, update last_duration in video state */
|
||||||
is->frame_last_duration = last_duration;
|
is->frame_last_duration = last_duration;
|
||||||
}
|
}
|
||||||
|
if (redisplay)
|
||||||
|
delay = 0.0;
|
||||||
|
else
|
||||||
delay = compute_target_delay(is->frame_last_duration, is);
|
delay = compute_target_delay(is->frame_last_duration, is);
|
||||||
|
|
||||||
time= av_gettime()/1000000.0;
|
time= av_gettime()/1000000.0;
|
||||||
|
Reference in New Issue
Block a user