diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2014-10-02 11:55:52 +0100 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2014-10-02 12:22:49 +0100 |
commit | 23c9ebffb5e2e9a525d19a8b9c31879ec7012fc9 (patch) | |
tree | 3642171ee7207f8f01c62e643e50f70839199b5d | |
parent | 1dbc3e8ac814f837ad2684f9b6afccff9602fe0e (diff) | |
download | ffmpeg-23c9ebffb5e2e9a525d19a8b9c31879ec7012fc9.tar.gz |
avfilter: Properly check for failed format query
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-rw-r--r-- | libavfilter/avfiltergraph.c | 4 |
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); |