Better error handling
authorVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:40:14 +0000 (20:40 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:40:14 +0000 (20:40 +0000)
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

index 278530e..c0fdb95 100644 (file)
@@ -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++;