mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-11 06:58:18 +00: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));
|
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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user