diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-07 18:40:07 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-07 18:40:07 +0000 |
commit | 42e7f6d781e0533505ffab53640739c7912a6753 (patch) | |
tree | 7a810c72efdb1a179181552de276226e49dd92d7 | |
parent | fbd97184f8b68b2074b79a1698e4d9404292f7ca (diff) | |
download | ffmpeg-42e7f6d781e0533505ffab53640739c7912a6753.tar.gz |
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
-rw-r--r-- | libavfilter/graphparser.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |