mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
ffplay: only update pts if not redisplaying a frame
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
e341cb1102
commit
35b2f30fd1
2
ffplay.c
2
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user