diff --git a/libavfilter/formats.c b/libavfilter/formats.c index bb7b921552..ae916cf16c 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -94,7 +94,7 @@ int avfilter_add_format(AVFilterFormats **avff, int fmt) return AVERROR(ENOMEM); fmts = av_realloc((*avff)->formats, - sizeof((*avff)->formats) * ((*avff)->format_count+1)); + sizeof(*(*avff)->formats) * ((*avff)->format_count+1)); if (!fmts) return AVERROR(ENOMEM);