aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2013-05-25 12:48:20 +0200
committerMarton Balint <cus@passwd.hu>2013-06-01 12:50:46 +0200
commit35b2f30fd119c404e37b4b48cfb89f63a648a4ed (patch)
tree4a50b4b4bb359d5721f7f9a8053fac3630184675 /ffplay.c
parente341cb1102c0cf29fe8a3ec29f968e3c45e2a15e (diff)
downloadffmpeg-35b2f30fd119c404e37b4b48cfb89f63a648a4ed.tar.gz
ffplay: only update pts if not redisplaying a frame
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 6456f3e3bb..085c0800a8 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);