mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_vignette: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
11e4890eeb
commit
d90ad5b2bb
|
@ -304,7 +304,7 @@ static int config_props(AVFilterLink *inlink)
|
||||||
s->xscale, s->yscale, s->dmax);
|
s->xscale, s->yscale, s->dmax);
|
||||||
|
|
||||||
s->fmap_linesize = FFALIGN(inlink->w, 32);
|
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)
|
if (!s->fmap)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue