Improve error handling
authorVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:40:20 +0000 (20:40 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:40:20 +0000 (20:40 +0000)
Commited in SoC by Vitor Sessak on 2008-04-12 14:32:13

Originally committed as revision 13316 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/graphparser.c

index 103887b..bfeecdf 100644 (file)
@@ -268,7 +268,9 @@ static int parse_inouts(const char **buf, AVFilterInOut **inout, int pad,
         if(!name)
             return -1;
 
-        handle_link(name, inout, pad++, type, filter);
+        if(handle_link(name, inout, pad++, type, filter) < 0)
+            return -1;
+
         consume_whitespace(buf);
     }
     return pad;