Commit 4932b1e8 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_libopencv: Use av_mallocz_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 375d7ee8
...@@ -166,7 +166,7 @@ static int read_shape_from_file(int *cols, int *rows, int **values, const char * ...@@ -166,7 +166,7 @@ static int read_shape_from_file(int *cols, int *rows, int **values, const char *
*rows, *cols); *rows, *cols);
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
if (!(*values = av_mallocz(sizeof(int) * *rows * *cols))) if (!(*values = av_mallocz_array(sizeof(int) * *rows, *cols)))
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
/* fill *values */ /* fill *values */
......
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