[SCM] libav/experimental: Make parse_inputs() return AVERROR(EINVAL) rather than -1 in case the link label parsed by parse_link_name() is invalid.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:18:45 UTC 2013


The following commit has been merged in the experimental branch:
commit 42e7f6d781e0533505ffab53640739c7912a6753
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Sun Nov 7 18:40:07 2010 +0000

    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

diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 94e33fa..6c73543 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);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list