aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/atrac3.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-21 15:59:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-21 15:59:56 +0200
commit606a49d2e6f1eaef28515ce8801571724be783b5 (patch)
tree08923a168be3dd6a0814361a76133042220295ae /libavcodec/atrac3.c
parentf0211f4189a500144ca5ac4d08328439b70dabcb (diff)
downloadffmpeg-606a49d2e6f1eaef28515ce8801571724be783b5.tar.gz
avcodec/atrac3: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/atrac3.c')
-rw-r--r--libavcodec/atrac3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index fc3b2fd570..435f1ac99e 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -918,7 +918,7 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx)
avpriv_float_dsp_init(&q->fdsp, avctx->flags & CODEC_FLAG_BITEXACT);
ff_fmt_convert_init(&q->fmt_conv, avctx);
- q->units = av_mallocz(sizeof(*q->units) * avctx->channels);
+ q->units = av_mallocz_array(avctx->channels, sizeof(*q->units));
if (!q->units) {
atrac3_decode_close(avctx);
return AVERROR(ENOMEM);