diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-05-24 20:40:20 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-05-24 20:40:20 +0000 |
commit | 7693be92324d686228e52446f7f73a276b2c49ee (patch) | |
tree | 48a5101790314f8bbc94c0f2359d6015696b2b1b | |
parent | a4501887e4cea137e7ccf925b87bb0aa2ea63c1f (diff) | |
download | ffmpeg-7693be92324d686228e52446f7f73a276b2c49ee.tar.gz |
Improve error handling
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
-rw-r--r-- | libavfilter/graphparser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 103887b11b..bfeecdf81b 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -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; |