mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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->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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user