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

stefano subversion
Sun Dec 12 14:39:17 CET 2010


Author: stefano
Date: Sun Dec 12 14:39:16 2010
New Revision: 25936

Log:
Make avfilter_parse_graph() output a more meaningful message when an
invalid filterchain is detected.

Modified:
   trunk/libavfilter/graphparser.c

Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c	Sun Dec 12 03:54:21 2010	(r25935)
+++ trunk/libavfilter/graphparser.c	Sun Dec 12 14:39:16 2010	(r25936)
@@ -338,6 +338,7 @@ int avfilter_graph_parse(AVFilterGraph *
 
     do {
         AVFilterContext *filter;
+        const char *filterchain = filters;
         filters += strspn(filters, WHITESPACES);
 
         if ((ret = parse_inputs(&filters, &curr_inputs, &open_outputs, log_ctx)) < 0)
@@ -365,8 +366,8 @@ int avfilter_graph_parse(AVFilterGraph *
 
         if (chr == ';' && curr_inputs) {
             av_log(log_ctx, AV_LOG_ERROR,
-                   "Could not find a output to link when parsing \"%s\"\n",
-                   filters - 1);
+                   "Invalid filterchain containing an unlabelled output pad: \"%s\"\n",
+                   filterchain);
             ret = AVERROR(EINVAL);
             goto fail;
         }



More information about the ffmpeg-cvslog mailing list