aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-09-13 09:31:54 +0000
committerPaul B Mahol <onemda@gmail.com>2013-09-15 19:07:02 +0000
commit24678a61d9f1de12efe50170b9285c5bf6392930 (patch)
treeccd6094f6095a42c1d8da1fd34e97b252e7d01d6
parent693747c3d09fbbc3a9b52402bd5597fec7a375c7 (diff)
downloadffmpeg-24678a61d9f1de12efe50170b9285c5bf6392930.tar.gz
avfilter/vf_gradfun: use av_calloc()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavfilter/vf_gradfun.c2
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);