From e1d12aaa453b267011c388f7de8cfb6936d08fec Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 27 Mar 2023 07:15:00 +0200 Subject: [PATCH] fftools/ffmpeg: do not return finished streams from choose_output() --- fftools/ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 2f1f830507..cb7cec68e5 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3493,7 +3493,7 @@ static OutputStream *choose_output(void) ost->initialized, ost->inputs_done, ost->finished); } - if (!ost->initialized && !ost->inputs_done) + if (!ost->initialized && !ost->inputs_done && !ost->finished) return ost->unavailable ? NULL : ost; if (!ost->finished && opts < opts_min) {