avfilter/vf_owdenoise: use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-07-21 03:18:56 +02:00
parent ec59f027ac
commit 437da3e349
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}