mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-27 22:06:58 +08: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user