From 8095a014a064979616afc80330df3b595a56dd41 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Sat, 24 May 2008 20:40:01 +0000 Subject: Even more improvements on whitespaces handling 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libavfilter') diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 7c19dbbdc8..3d002abd0e 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -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; } -- cgit v1.2.3