[FFmpeg-cvslog] avfilter/vf_vignette: Use av_malloc_array()

Michael Niedermayer git at videolan.org
Sun Jul 6 14:39:43 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jul  6 14:34:37 2014 +0200| [d90ad5b2bb22d68aee026a6971be77c8abb2ef97] | committer: Michael Niedermayer

avfilter/vf_vignette: Use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavfilter/vf_vignette.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_vignette.c b/libavfilter/vf_vignette.c
index e53d055..806bd72 100644
--- a/libavfilter/vf_vignette.c
+++ b/libavfilter/vf_vignette.c
@@ -304,7 +304,7 @@ static int config_props(AVFilterLink *inlink)
            s->xscale, s->yscale, s->dmax);
 
     s->fmap_linesize = FFALIGN(inlink->w, 32);
-    s->fmap = av_malloc(s->fmap_linesize * inlink->h * sizeof(*s->fmap));
+    s->fmap = av_malloc_array(s->fmap_linesize, inlink->h * sizeof(*s->fmap));
     if (!s->fmap)
         return AVERROR(ENOMEM);
 



More information about the ffmpeg-cvslog mailing list