diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-02-09 13:33:11 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-02-10 09:35:23 +0000 |
commit | e4eba9e21d71f6430c3608d530b69810868dd5d7 (patch) | |
tree | 8e5205fd84a475949dc65bec18280796057fd670 /libavcodec/mss4.c | |
parent | fd6768a4b8e2ce9e25a447aec9194b2bcdd1ac35 (diff) | |
download | ffmpeg-e4eba9e21d71f6430c3608d530b69810868dd5d7.tar.gz |
avcodec/mss4: use av_malloc_array()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/mss4.c')
-rw-r--r-- | libavcodec/mss4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mss4.c b/libavcodec/mss4.c index c5b8e07aaa..07d90ed4f3 100644 --- a/libavcodec/mss4.c +++ b/libavcodec/mss4.c @@ -650,7 +650,7 @@ static av_cold int mss4_decode_init(AVCodecContext *avctx) } for (i = 0; i < 3; i++) { c->dc_stride[i] = FFALIGN(avctx->width, 16) >> (2 + !!i); - c->prev_dc[i] = av_malloc(sizeof(**c->prev_dc) * c->dc_stride[i]); + c->prev_dc[i] = av_malloc_array(c->dc_stride[i], sizeof(**c->prev_dc)); if (!c->prev_dc[i]) { av_log(avctx, AV_LOG_ERROR, "Cannot allocate buffer\n"); mss4_free_vlcs(c); |