Even more improvements on whitespaces handling
authorVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:40:01 +0000 (20:40 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:40:01 +0000 (20:40 +0000)
Commited in SoC by Vitor Sessak on 2008-04-12 10:37:15

Originally committed as revision 13310 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/graphparser.c

index 7c19dbb..3d002ab 100644 (file)
@@ -233,15 +233,17 @@ static int parse_inouts(const char **buf, AVFilterInOut **inout, int pad,
         inoutn->pad_idx = pad++;
         inoutn->next    = *inout;
         *inout = inoutn;
+        consume_whitespace(buf);
     }
     return pad;
 }
 
 static const char *skip_inouts(const char *buf)
 {
-    while (*buf == '[')
+    while (*buf == '[') {
         buf += strcspn(buf, "]") + 1;
-
+        consume_whitespace(&buf);
+    }
     return buf;
 }