From 3075017ebfb63328e527c714c53fc867febdbbe3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 2 Mar 2018 14:03:41 +0100 Subject: video: don't read ahead a frame in --untimed mode The extra frame is used to compute the exact frame duration. But frame drop is disabvled with --untimed. --- player/video.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player') diff --git a/player/video.c b/player/video.c index e03ada4863..b47b7293d0 100644 --- a/player/video.c +++ b/player/video.c @@ -410,6 +410,9 @@ static int get_req_frames(struct MPContext *mpctx, bool eof) if (mpctx->video_out->driver->caps & VO_CAP_NORETAIN) return 1; + if (mpctx->opts->untimed || mpctx->video_out->driver->untimed) + return 1; + // On the first frame, output a new frame as quickly as possible. // But display-sync likes to have a correct frame duration always. if (mpctx->video_pts == MP_NOPTS_VALUE) -- cgit v1.2.3