[FFmpeg-devel] [PATCH] fftools/ffmpeg: do not return finished streams from choose_output()
Anton Khirnov
anton at khirnov.net
Mon Mar 27 08:15:56 EEST 2023
---
Should be fixed by this patch.
---
fftools/ffmpeg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index ae69d29ab7..f1fdbd47eb 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -2402,7 +2402,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) {
--
2.39.1
More information about the ffmpeg-devel
mailing list