avfilter/vf_libopencv: Use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-07-11 15:00:49 +02:00
parent 375d7ee805
commit 4932b1e8b8
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ static int read_shape_from_file(int *cols, int *rows, int **values, const char *
*rows, *cols);
return AVERROR_INVALIDDATA;
}
if (!(*values = av_mallocz(sizeof(int) * *rows * *cols)))
if (!(*values = av_mallocz_array(sizeof(int) * *rows, *cols)))
return AVERROR(ENOMEM);
/* fill *values */