From 42e7f6d781e0533505ffab53640739c7912a6753 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sun, 7 Nov 2010 18:40:07 +0000 Subject: [PATCH] Make parse_inputs() return AVERROR(EINVAL) rather than -1 in case the link label parsed by parse_link_name() is invalid. Originally committed as revision 25696 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavfilter/graphparser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 94e33fa447..6c73543770 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -249,7 +249,7 @@ static int parse_inputs(const char **buf, AVFilterInOut **curr_inputs, AVFilterInOut *match; if (!name) - return -1; + return AVERROR(EINVAL); /* First check if the label is not in the open_outputs list */ match = extract_inout(name, open_outputs);