mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
ffplay: use more sane frame timer resetting logic
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
35b2f30fd1
commit
97e42551e4
1 changed files with 3 additions and 2 deletions
5
ffplay.c
5
ffplay.c
|
|
@ -1378,8 +1378,9 @@ retry:
|
|||
return;
|
||||
}
|
||||
|
||||
if (delay > 0)
|
||||
is->frame_timer += delay * FFMAX(1, floor((time-is->frame_timer) / delay));
|
||||
is->frame_timer += delay;
|
||||
if (delay > 0 && time - is->frame_timer > AV_SYNC_THRESHOLD_MAX)
|
||||
is->frame_timer = time;
|
||||
|
||||
SDL_LockMutex(is->pictq_mutex);
|
||||
if (!redisplay && !isnan(vp->pts))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue