ffplay: only update pts if not redisplaying a frame
authorMarton Balint <cus@passwd.hu>
Sat, 25 May 2013 10:48:20 +0000 (12:48 +0200)
committerMarton Balint <cus@passwd.hu>
Sat, 1 Jun 2013 10:50:46 +0000 (12:50 +0200)
Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay.c

index 6456f3e..085c080 100644 (file)
--- 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);