Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-06-03 23:48:59 +0400
committerNicolas George <nicolas.george@normalesup.org>2012-06-05 15:26:34 +0400
commit6a4c5c730ed67a7f472e43205fd96e91781796ce (patch)
tree3f973867bd2ae176a92c7a4962e919a09f2a1261 /libavfilter/avfiltergraph.c
parenta3bc7f916dcc69cfa439b424352d5951b4eaf9b8 (diff)
avfiltergraph: check query_formats return value.
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r--libavfilter/avfiltergraph.c6
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 */