summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/graphparser.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 6b01f49650..5d688397e8 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -224,10 +224,9 @@ static int parse_inouts(const char **buf, AVFilterInOut **inout, int firstpad,
static const char *skip_inouts(const char *buf)
{
- while (*buf == '[') {
- buf += strcspn(buf, "]");
- buf++;
- }
+ while (*buf == '[')
+ buf += strcspn(buf, "]") + 1;
+
return buf;
}