]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_libopencv.c
Merge commit '78670fbf07bd03479073d4218440de4914304680'
[ffmpeg] / libavfilter / vf_libopencv.c
index 6b4a7fcb380751afd72504a294cfa349da284c0b..f55f552ec5143456e352156c0d9255d5f2faa44f 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 */