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

vitor subversion
Sat May 24 22:39:58 CEST 2008


Author: vitor
Date: Sat May 24 22:39:57 2008
New Revision: 13309

Log:
More improvements on the handling of whitespaces
Commited in SoC by Vitor Sessak on 2008-04-12 10:34:48


Modified:
   trunk/libavfilter/graphparser.c

Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c	(original)
+++ trunk/libavfilter/graphparser.c	Sat May 24 22:39:57 2008
@@ -263,12 +263,13 @@ int avfilter_parse_graph(AVFilterGraph *
 
     AVFilterContext *last_filt = NULL;
 
-    consume_whitespace(&filters);
-
     do {
         AVFilterContext *filter;
         int oldpad = pad;
-        const char *inouts = filters;
+        const char *inouts;
+
+        consume_whitespace(&filters);
+        inouts = filters;
 
         // We need to parse the inputs of the filter after we create it, so
         // skip it by now
@@ -295,6 +296,9 @@ int avfilter_parse_graph(AVFilterGraph *
         }
 
         pad = parse_inouts(&filters, &inout, 0, LinkTypeOut, filter);
+
+        consume_whitespace(&filters);
+
         chr = *filters++;
         index++;
         last_filt = filter;




More information about the ffmpeg-cvslog mailing list