summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-05-24 20:40:14 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-05-24 20:40:14 +0000
commite84f0b628768942d8f2e8e1013edbe75965746f1 (patch)
treedb009df3f9a0d51e56252e19fc25577d6b9a2084 /libavfilter
parent85cb8af7a3cf3698ef74a0dc1a715d82a6ec4b29 (diff)
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')
-rw-r--r--libavfilter/graphparser.c3
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++;