From 4fc5c1fa134d36472fdbdfa4880fd74af750c8c5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 26 Apr 2018 18:46:18 +0200 Subject: player: don't wait for last video frame in encode mode This code makes the player wait using real time, which makes sense for normal playback, but not encode mode. --- player/video.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index f4623f29e8..5db76db3fd 100644 --- a/player/video.c +++ b/player/video.c @@ -1012,6 +1012,9 @@ void write_video(struct MPContext *mpctx) } else { mpctx->time_frame = 0; } + // Encode mode can't honor this; it'll only delay finishing. + if (mpctx->encode_lavc_ctx) + mpctx->time_frame = 0; } if (mpctx->video_status == STATUS_DRAINING) { -- cgit v1.2.3