avfilter/vf_vignette: Use av_malloc_array()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 6 Jul 2014 12:34:37 +0000 (14:34 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 6 Jul 2014 12:34:37 +0000 (14:34 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_vignette.c

index e53d055..806bd72 100644 (file)
@@ -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);