avfiltergraph: check query_formats return value.

pull/59/head
Nicolas George 13 years ago
parent a3bc7f916d
commit 6a4c5c730e
  1. 6
      libavfilter/avfiltergraph.c

@ -238,9 +238,11 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
/* ask all the sub-filters for their supported media formats */
for (i = 0; i < graph->filter_count; i++) {
if (graph->filters[i]->filter->query_formats)
graph->filters[i]->filter->query_formats(graph->filters[i]);
ret = graph->filters[i]->filter->query_formats(graph->filters[i]);
else
ff_default_query_formats(graph->filters[i]);
ret = ff_default_query_formats(graph->filters[i]);
if (ret < 0)
return ret;
}
/* go through and merge as many format lists as possible */

Loading…
Cancel
Save