mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue