Commit 97e42551 authored by Marton Balint's avatar Marton Balint

ffplay: use more sane frame timer resetting logic

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 35b2f30f
......@@ -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))
......
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