Commit 24678a61 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_gradfun: use av_calloc()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 693747c3
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment