]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
More improvements on the handling of whitespaces
authorvitor <vitor@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 24 May 2008 20:39:57 +0000 (20:39 +0000)
committervitor <vitor@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 24 May 2008 20:39:57 +0000 (20:39 +0000)
Commited in SoC by Vitor Sessak on 2008-04-12 10:34:48

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13309 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavfilter/graphparser.c

index 49a8bb1569240b883f8e7232d8530dc5474814fb..7c19dbbdc8d4eb2f0a66bb4d04dda5da5471ef45 100644 (file)
@@ -263,12 +263,13 @@ int avfilter_parse_graph(AVFilterGraph *graph, const char *filters,
 
     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 *graph, const char *filters,
         }
 
         pad = parse_inouts(&filters, &inout, 0, LinkTypeOut, filter);
+
+        consume_whitespace(&filters);
+
         chr = *filters++;
         index++;
         last_filt = filter;