[FFmpeg-cvslog] avfilter/vf_gradfun: use av_calloc()

Paul B Mahol git at videolan.org
Sun Sep 15 21:08:49 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Sep 13 09:31:54 2013 +0000| [24678a61d9f1de12efe50170b9285c5bf6392930] | committer: Paul B Mahol

avfilter/vf_gradfun: use av_calloc()

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=24678a61d9f1de12efe50170b9285c5bf6392930
---

 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 bc1715f..7b93359 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);
 



More information about the ffmpeg-cvslog mailing list