@@ -944,7 +944,7 @@ static int choose_output(OutputStream **post)
INT64_MIN : ost->last_mux_dts;
}
- if (!ost->initialized && !ost->inputs_done && !ost->finished) {
+ if (!ost->initialized && !ost->finished) {
ost_min = ost;
break;
}
@@ -583,8 +583,6 @@ typedef struct OutputStream {
// parameters are set in the AVStream.
int initialized;
- int inputs_done;
-
const char *attachment_filename;
int keep_pix_fmt;
@@ -2076,11 +2076,11 @@ int fg_transcode_step(FilterGraph *graph, InputStream **best_ist)
}
}
- // graph not configured, but all inputs are either initialized or EOF
- for (int i = 0; i < graph->nb_outputs; i++)
- graph->outputs[i]->ost->inputs_done = 1;
-
- return 0;
+ // This state - graph is not configured, but all inputs are either
+ // initialized or EOF - should be unreachable because sending EOF to a
+ // filter without even a fallback format should fail
+ av_assert0(0);
+ return AVERROR_BUG;
}
*best_ist = NULL;