mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-16 11:00:20 +00: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:
parent
97e42551e4
commit
3b6f1526c6
5
ffplay.c
5
ffplay.c
@ -1370,7 +1370,10 @@ retry:
|
||||
/* if duration of the last frame was sane, update last_duration in video state */
|
||||
is->frame_last_duration = last_duration;
|
||||
}
|
||||
delay = compute_target_delay(is->frame_last_duration, is);
|
||||
if (redisplay)
|
||||
delay = 0.0;
|
||||
else
|
||||
delay = compute_target_delay(is->frame_last_duration, is);
|
||||
|
||||
time= av_gettime()/1000000.0;
|
||||
if (time < is->frame_timer + delay && !redisplay) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user