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
pull/126/head
Vitor Sessak 17 years ago
parent 7a57c8d9ad
commit 8095a014a0
  1. 6
      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;
}

Loading…
Cancel
Save