avfilter/vf_gradfun: use av_calloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2013-09-13 09:31:54 +00:00
parent 693747c3d0
commit 24678a61d9
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ static int config_input(AVFilterLink *inlink)
int vsub = desc->log2_chroma_h; int vsub = desc->log2_chroma_h;
av_freep(&s->buf); 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) if (!s->buf)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);