1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

fftools/ffmpeg: do not return finished streams from choose_output()

This commit is contained in:
Anton Khirnov
2023-03-27 07:15:00 +02:00
parent 416e2661ea
commit e1d12aaa45

View File

@@ -3493,7 +3493,7 @@ static OutputStream *choose_output(void)
ost->initialized, ost->inputs_done, ost->finished); 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; return ost->unavailable ? NULL : ost;
if (!ost->finished && opts < opts_min) { if (!ost->finished && opts < opts_min) {