summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/video.c3
1 files changed, 3 insertions, 0 deletions
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) {