From e84f0b628768942d8f2e8e1013edbe75965746f1 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Sat, 24 May 2008 20:40:14 +0000 Subject: Better error handling Commited in SoC by Vitor Sessak on 2008-04-12 14:28:30 Originally committed as revision 13314 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavfilter/graphparser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 278530ed27..c0fdb95b56 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -335,6 +335,9 @@ int avfilter_parse_graph(AVFilterGraph *graph, const char *filters, pad = parse_inouts(&filters, &inout, 0, LinkTypeOut, filter); + if(pad < 0) + goto fail; + consume_whitespace(&filters); chr = *filters++; -- cgit v1.2.3