diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-11 15:00:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-11 15:00:49 +0200 |
commit | 4932b1e8b8524788e29211fe0009219eae44acd7 (patch) | |
tree | 42819ca070db3c976c01c14cae9acfe1bf6b7f1a | |
parent | 375d7ee8056ad087f16ba7320a9b3dca8aa86512 (diff) | |
download | ffmpeg-4932b1e8b8524788e29211fe0009219eae44acd7.tar.gz |
avfilter/vf_libopencv: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/vf_libopencv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c index 6b4a7fcb38..f55f552ec5 100644 --- a/libavfilter/vf_libopencv.c +++ b/libavfilter/vf_libopencv.c @@ -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 */ |