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; }