diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 7ce82f8011..f31968f394 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -119,8 +119,8 @@ int ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off, (*count)++; for (i = idx + 1; i < *count; i++) - if (*links[i]) - (*(unsigned *)((uint8_t *) *links[i] + padidx_off))++; + if ((*links)[i]) + (*(unsigned *)((uint8_t *) (*links)[i] + padidx_off))++; return 0; }