Commit 35b2f30f authored by Marton Balint's avatar Marton Balint

ffplay: only update pts if not redisplaying a frame

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent e341cb11
...@@ -1382,7 +1382,7 @@ retry: ...@@ -1382,7 +1382,7 @@ retry:
is->frame_timer += delay * FFMAX(1, floor((time-is->frame_timer) / delay)); is->frame_timer += delay * FFMAX(1, floor((time-is->frame_timer) / delay));
SDL_LockMutex(is->pictq_mutex); SDL_LockMutex(is->pictq_mutex);
if (!isnan(vp->pts)) if (!redisplay && !isnan(vp->pts))
update_video_pts(is, vp->pts, vp->pos, vp->serial); update_video_pts(is, vp->pts, vp->pos, vp->serial);
SDL_UnlockMutex(is->pictq_mutex); SDL_UnlockMutex(is->pictq_mutex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment