diff --git a/ffplay.c b/ffplay.c index 085c0800a8..a14b5f2e3e 100644 --- a/ffplay.c +++ b/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))