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

stefano subversion
Sat Jan 17 00:56:53 CET 2009


Author: stefano
Date: Sat Jan 17 00:56:53 2009
New Revision: 16648

Log:
Print a warning and fail if the graph description cannot be
parsed.

Modified:
   trunk/libavfilter/graphparser.c

Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c	Fri Jan 16 21:46:38 2009	(r16647)
+++ trunk/libavfilter/graphparser.c	Sat Jan 17 00:56:53 2009	(r16648)
@@ -376,6 +376,13 @@ int avfilter_parse_graph(AVFilterGraph *
         index++;
     } while(chr == ',' || chr == ';');
 
+    if (*filters) {
+        av_log(log_ctx, AV_LOG_ERROR,
+               "Unable to parse graph description substring: \"%s\"\n",
+               filters - 1);
+        goto fail;
+    }
+
     if(open_inputs && !strcmp(open_inputs->name, "out") && curr_inputs) {
         /* Last output can be omitted if it is "[out]" */
         const char *tmp = "[out]";




More information about the ffmpeg-cvslog mailing list