diff options
author | Marton Balint <cus@passwd.hu> | 2013-02-02 12:37:29 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2013-06-01 12:50:46 +0200 |
commit | 3b6f1526c69bf45936b9ea605a1b72b65a948ce4 (patch) | |
tree | 3b1a09a9e13aa9b766f91122278ade0a89f12cf7 /ffplay.c | |
parent | 97e42551e468cdce53a667f33c9e9002b21db3c8 (diff) | |
download | ffmpeg-3b6f1526c69bf45936b9ea605a1b72b65a948ce4.tar.gz |
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>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) { |