You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/vf_libopencv: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user