[FFmpeg-devel] [PATCH 7/7] ffplay: use 0 frame delay if redisplaying an already displayed frame

Marton Balint cus at passwd.hu
Sun May 26 22:50:58 CEST 2013


With the previous patches this finally fixes ticket #1707.

Signed-off-by: Marton Balint <cus at passwd.hu>
---
 ffplay.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index e5fae7f..c79a548 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) {
-- 
1.8.1.4



More information about the ffmpeg-devel mailing list