1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

avfiltergraph: check query_formats return value.

This commit is contained in:
Nicolas George 2012-06-03 21:48:59 +02:00
parent a3bc7f916d
commit 6a4c5c730e

View File

@ -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 */