avconv: Do not try to configure filter outputs without streams

Prevent a NULL-dereference.

CC: libav-stable@libav.org
pull/154/head
Luca Barbato 9 years ago
parent d7a5a178c2
commit 8b830ee9a2
  1. 8
      avconv_filter.c

@ -702,8 +702,12 @@ int configure_filtergraph(FilterGraph *fg)
return ret; return ret;
avfilter_inout_free(&inputs); avfilter_inout_free(&inputs);
for (cur = outputs, i = 0; cur; cur = cur->next, i++) for (cur = outputs, i = 0; cur; cur = cur->next, i++) {
configure_output_filter(fg, fg->outputs[i], cur); OutputFilter *ofilter = fg->outputs[i];
if (ofilter->ost)
configure_output_filter(fg, ofilter, cur);
}
avfilter_inout_free(&outputs); avfilter_inout_free(&outputs);
if ((ret = avfilter_graph_config(fg->graph, NULL)) < 0) if ((ret = avfilter_graph_config(fg->graph, NULL)) < 0)

Loading…
Cancel
Save