aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2013-02-02 12:37:29 +0100
committerMarton Balint <cus@passwd.hu>2013-06-01 12:50:46 +0200
commit3b6f1526c69bf45936b9ea605a1b72b65a948ce4 (patch)
tree3b1a09a9e13aa9b766f91122278ade0a89f12cf7 /ffplay.c
parent97e42551e468cdce53a667f33c9e9002b21db3c8 (diff)
downloadffmpeg-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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index a14b5f2e3e..ab50db8e1d 100644
--- a/ffplay.c
+++ b/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) {