Commit 6a4c5c73 authored by Nicolas George's avatar Nicolas George

avfiltergraph: check query_formats return value.

parent a3bc7f91
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment