diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 032d1282b6..e8f26f456b 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -273,10 +273,10 @@ static int parse_inputs(const char **buf, AVFilterInOut **currInputs, AVFilterInOut **openLinks, AVClass *log_ctx) { int pad = 0; - AVFilterInOut *p; while (**buf == '[') { char *name; + AVFilterInOut *p; parse_link_name(buf, &name, log_ctx);