diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-09-13 13:31:54 +0400 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-09-15 23:07:02 +0400 |
commit | 24678a61d9f1de12efe50170b9285c5bf6392930 (patch) | |
tree | ccd6094f6095a42c1d8da1fd34e97b252e7d01d6 /libavfilter/vf_gradfun.c | |
parent | 693747c3d09fbbc3a9b52402bd5597fec7a375c7 (diff) |
avfilter/vf_gradfun: use av_calloc()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_gradfun.c')
-rw-r--r-- | libavfilter/vf_gradfun.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |