diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-05-24 20:40:14 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-05-24 20:40:14 +0000 |
commit | e84f0b628768942d8f2e8e1013edbe75965746f1 (patch) | |
tree | db009df3f9a0d51e56252e19fc25577d6b9a2084 /libavfilter/graphparser.c | |
parent | 85cb8af7a3cf3698ef74a0dc1a715d82a6ec4b29 (diff) | |
download | ffmpeg-e84f0b628768942d8f2e8e1013edbe75965746f1.tar.gz |
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
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r-- | libavfilter/graphparser.c | 3 |
1 files changed, 3 insertions, 0 deletions
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++; |