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
This commit is contained in:
Vitor Sessak 2008-05-24 20:40:01 +00:00
parent 7a57c8d9ad
commit 8095a014a0
1 changed files with 4 additions and 2 deletions

View File

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