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-03 02:38:01 +02:00
committed by Jan Ekström
parent 16eca7139a
commit 3075017ebf
+3
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)