mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +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:
parent
9c639016f8
commit
4fc5c1fa13
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user