[FFmpeg-cvslog] fftools/ffmpeg: do not return finished streams from choose_output()
Anton Khirnov
git at videolan.org
Sun Apr 9 16:50:02 EEST 2023
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Mar 27 07:15:00 2023 +0200| [e1d12aaa453b267011c388f7de8cfb6936d08fec] | committer: Anton Khirnov
fftools/ffmpeg: do not return finished streams from choose_output()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e1d12aaa453b267011c388f7de8cfb6936d08fec
---
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) {
More information about the ffmpeg-cvslog
mailing list