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

pull/389/head
Anton Khirnov 2 years ago
parent 416e2661ea
commit e1d12aaa45
  1. 2
      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) {

Loading…
Cancel
Save