From 24678a61d9f1de12efe50170b9285c5bf6392930 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 13 Sep 2013 09:31:54 +0000 Subject: [PATCH] avfilter/vf_gradfun: use av_calloc() Signed-off-by: Paul B Mahol --- libavfilter/vf_gradfun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c index bc1715f95c..7b93359296 100644 --- a/libavfilter/vf_gradfun.c +++ b/libavfilter/vf_gradfun.c @@ -169,7 +169,7 @@ static int config_input(AVFilterLink *inlink) int vsub = desc->log2_chroma_h; av_freep(&s->buf); - s->buf = av_mallocz((FFALIGN(inlink->w, 16) * (s->radius + 1) / 2 + 32) * sizeof(uint16_t)); + s->buf = av_calloc((FFALIGN(inlink->w, 16) * (s->radius + 1) / 2 + 32), sizeof(*s->buf)); if (!s->buf) return AVERROR(ENOMEM);