[FFmpeg-soc] [soc]: r2122 - libavfilter/graphparser.c

vitor subversion at mplayerhq.hu
Sat Apr 12 12:34:49 CEST 2008


Author: vitor
Date: Sat Apr 12 12:34:48 2008
New Revision: 2122

Log:
More improvements on the handling of whitespaces

Modified:
   libavfilter/graphparser.c

Modified: libavfilter/graphparser.c
==============================================================================
--- libavfilter/graphparser.c	(original)
+++ libavfilter/graphparser.c	Sat Apr 12 12:34:48 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-soc mailing list