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