diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index bdcf3673bb..3883ae94d1 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -207,9 +207,8 @@ static int link_filter_inouts(AVFilterContext *filter, AVFilterInOut **currInputs, AVFilterInOut **openLinks, AVClass *log_ctx) { - int pad = 0; + int pad = filter->input_count; - pad = filter->input_count; while(pad--) { AVFilterInOut *p = *currInputs; *currInputs = (*currInputs)->next;