Commit 437da3e3 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_owdenoise: use av_malloc_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ec59f027
......@@ -293,7 +293,7 @@ static int config_input(AVFilterLink *inlink)
s->linesize = FFALIGN(inlink->w, 16);
for (j = 0; j < 4; j++) {
for (i = 0; i <= s->depth; i++) {
s->plane[i][j] = av_malloc(s->linesize * h * sizeof(s->plane[0][0][0]));
s->plane[i][j] = av_malloc_array(s->linesize, h * sizeof(s->plane[0][0][0]));
if (!s->plane[i][j])
return AVERROR(ENOMEM);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment