diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-06-03 21:48:59 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-06-05 13:26:34 +0200 |
commit | 6a4c5c730ed67a7f472e43205fd96e91781796ce (patch) | |
tree | 3f973867bd2ae176a92c7a4962e919a09f2a1261 | |
parent | a3bc7f916dcc69cfa439b424352d5951b4eaf9b8 (diff) | |
download | ffmpeg-6a4c5c730ed67a7f472e43205fd96e91781796ce.tar.gz |
avfiltergraph: check query_formats return value.
-rw-r--r-- | libavfilter/avfiltergraph.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index da5015ca88..997ae451f9 100644 --- a/libavfilter/avfiltergraph.c +++ b/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 */ |