]> git.sesse.net Git - ffmpeg/commitdiff
ffplay: use 0 frame delay if redisplaying an already displayed frame
authorMarton Balint <cus@passwd.hu>
Sat, 2 Feb 2013 11:37:29 +0000 (12:37 +0100)
committerMarton Balint <cus@passwd.hu>
Sat, 1 Jun 2013 10:50:46 +0000 (12:50 +0200)
With the previous patches this finally fixes ticket #1707.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay.c

index a14b5f2e3ecb0f102f883ce582eb8d7a2fdd7005..ab50db8e1ddcc648b9b6a3b32bb8d75732976bad 100644 (file)
--- 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) {