mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user