aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-03-27 07:15:00 +0200
committerAnton Khirnov <anton@khirnov.net>2023-04-09 15:47:45 +0200
commite1d12aaa453b267011c388f7de8cfb6936d08fec (patch)
tree720ec6ee54b2daa4eb7f35bb10e9a87693e64c4f
parent416e2661ea9c2b55d5b9e25d687f0d2a839d6cd6 (diff)
downloadffmpeg-e1d12aaa453b267011c388f7de8cfb6936d08fec.tar.gz
fftools/ffmpeg: do not return finished streams from choose_output()
-rw-r--r--fftools/ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
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) {