1
mirror of https://github.com/mpv-player/mpv synced 2024-09-09 01:16:56 +02:00

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.
This commit is contained in:
wm4 2018-03-02 14:03:41 +01:00 committed by Jan Ekström
parent 16eca7139a
commit 3075017ebf

View File

@ -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)