diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c index 9426a8849f..10b2f5f722 100644 --- a/ffmpeg_filter.c +++ b/ffmpeg_filter.c @@ -1035,12 +1035,8 @@ int configure_filtergraph(FilterGraph *fg) } avfilter_inout_free(&inputs); - for (cur = outputs, i = 0; cur; cur = cur->next, i++) { - OutputFilter *ofilter = fg->outputs[i]; - if (ofilter->ost) - configure_output_filter(fg, ofilter, cur); - } - + for (cur = outputs, i = 0; cur; cur = cur->next, i++) + configure_output_filter(fg, fg->outputs[i], cur); avfilter_inout_free(&outputs); if ((ret = avfilter_graph_config(fg->graph, NULL)) < 0)