avfilter/vf_libopencv: Use av_mallocz_array()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 11 Jul 2014 13:00:49 +0000 (15:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 11 Jul 2014 13:00:49 +0000 (15:00 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_libopencv.c

index 6b4a7fc..f55f552 100644 (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 */