[FFmpeg-cvslog] ffplay: only update pts if not redisplaying a 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 May 25 12:48:20 2013 +0200| [35b2f30fd119c404e37b4b48cfb89f63a648a4ed] | committer: Marton Balint

ffplay: only update pts if not redisplaying a frame

Signed-off-by: Marton Balint <cus at passwd.hu>

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

 ffplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index 6456f3e..085c080 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);
 



More information about the ffmpeg-cvslog mailing list