[FFmpeg-devel] [PATCH 5/7] ffplay: only update pts if not redisplaying a frame

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


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

diff --git a/ffplay.c b/ffplay.c
index 39cb5c5..c0f3c4a 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1382,7 +1382,7 @@ retry:
                 is->frame_timer += delay * FFMAX(1, floor((time-is->frame_timer) / delay));
 
             SDL_LockMutex(is->pictq_mutex);
-            if (!isnan(vp->pts))
+            if (!redisplay && !isnan(vp->pts))
                 update_video_pts(is, vp->pts, vp->pos, vp->serial);
             SDL_UnlockMutex(is->pictq_mutex);
 
-- 
1.8.1.4



More information about the ffmpeg-devel mailing list