[FFmpeg-cvslog] avfilter/vf_libopencv: Use av_mallocz_array()
Michael Niedermayer
git at videolan.org
Fri Jul 11 15:44:00 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jul 11 15:00:49 2014 +0200| [4932b1e8b8524788e29211fe0009219eae44acd7] | committer: Michael Niedermayer
avfilter/vf_libopencv: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4932b1e8b8524788e29211fe0009219eae44acd7
---
libavfilter/vf_libopencv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index 6b4a7fc..f55f552 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 */
More information about the ffmpeg-cvslog
mailing list