[FFmpeg-devel] [PATCH 2/2] avfilter: Properly check for failed format query
Derek Buitenhuis
derek.buitenhuis at gmail.com
Thu Oct 2 12:55:52 CEST 2014
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
libavfilter/avfiltergraph.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 9178939..a859ecb 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);
--
1.7.1
More information about the ffmpeg-devel
mailing list