[FFmpeg-cvslog] r25696 - trunk/libavfilter/graphparser.c

stefano subversion
Sun Nov 7 19:40:07 CET 2010


Author: stefano
Date: Sun Nov  7 19:40:07 2010
New Revision: 25696

Log:
Make parse_inputs() return AVERROR(EINVAL) rather than -1 in case the
link label parsed by parse_link_name() is invalid.

Modified:
   trunk/libavfilter/graphparser.c

Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c	Sun Nov  7 19:40:04 2010	(r25695)
+++ trunk/libavfilter/graphparser.c	Sun Nov  7 19:40:07 2010	(r25696)
@@ -249,7 +249,7 @@ static int parse_inputs(const char **buf
         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);



More information about the ffmpeg-cvslog mailing list