[FFmpeg-cvslog] ffplay: use 0 frame delay if redisplaying an already displayed frame

Marton Balint git at videolan.org
Sat Jun 1 23:58:44 CEST 2013


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Feb  2 12:37:29 2013 +0100| [3b6f1526c69bf45936b9ea605a1b72b65a948ce4] | committer: Marton Balint

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 at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3b6f1526c69bf45936b9ea605a1b72b65a948ce4
---

 ffplay.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index a14b5f2..ab50db8 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) {



More information about the ffmpeg-cvslog mailing list