summaryrefslogtreecommitdiff
path: root/libavcodec/cinepakenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/cinepakenc.c')
-rw-r--r--libavcodec/cinepakenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cinepakenc.c b/libavcodec/cinepakenc.c
index 9c69ec5361..727734519c 100644
--- a/libavcodec/cinepakenc.c
+++ b/libavcodec/cinepakenc.c
@@ -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