mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
7a57c8d9ad
commit
8095a014a0
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue