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
1 changed files with 1 additions and 1 deletions

View File

@ -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) {