diff options
author | wm4 <wm4@nowhere> | 2018-03-02 14:03:41 +0100 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-03-03 02:38:01 +0200 |
commit | 3075017ebfb63328e527c714c53fc867febdbbe3 (patch) | |
tree | 91a143d1626e36560097c25d48d72a3e32c4fe5c | |
parent | 16eca7139a98609b71a25a0e6095b18e28f62025 (diff) |
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.
-rw-r--r-- | player/video.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) |