]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cinepakenc.c
Merge remote-tracking branch 'cehoyos/master'
[ffmpeg] / libavcodec / cinepakenc.c
index 9c69ec536169b5794fd64e7d3e0706b94ddef9b6..727734519cccc1639596930c1c576c35abef59c2 100644 (file)
@@ -236,11 +236,11 @@ static av_cold int cinepak_encode_init(AVCodecContext *avctx)
     if (!(s->frame_buf = av_malloc(frame_buf_size)))
         goto enomem;
 
-    if (!(s->mb = av_malloc(mb_count*sizeof(mb_info))))
+    if (!(s->mb = av_malloc_array(mb_count, sizeof(mb_info))))
         goto enomem;
 
 #ifdef CINEPAKENC_DEBUG
-    if (!(s->best_mb = av_malloc(mb_count*sizeof(mb_info))))
+    if (!(s->best_mb = av_malloc_array(mb_count, sizeof(mb_info))))
         goto enomem;
 #endif