Commit 8095a014 authored by Vitor Sessak's avatar Vitor Sessak
Browse files

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
parent 7a57c8d9
...@@ -233,15 +233,17 @@ static int parse_inouts(const char **buf, AVFilterInOut **inout, int pad, ...@@ -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;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment