aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2014-10-02 11:55:52 +0100
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2014-10-02 12:22:49 +0100
commit23c9ebffb5e2e9a525d19a8b9c31879ec7012fc9 (patch)
tree3642171ee7207f8f01c62e643e50f70839199b5d
parent1dbc3e8ac814f837ad2684f9b6afccff9602fe0e (diff)
downloadffmpeg-23c9ebffb5e2e9a525d19a8b9c31879ec7012fc9.tar.gz
avfilter: Properly check for failed format query
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-rw-r--r--libavfilter/avfiltergraph.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 9178939f77..a859ecbde9 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -559,7 +559,9 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
if ((ret = avfilter_insert_filter(link, convert, 0, 0)) < 0)
return ret;
- filter_query_formats(convert);
+ if ((ret = filter_query_formats(convert)) < 0)
+ return ret;
+
inlink = convert->inputs[0];
outlink = convert->outputs[0];
av_assert0( inlink-> in_formats->refcount > 0);