[FFmpeg-cvslog] avcodec/atrac3: Use av_mallocz_array()
Michael Niedermayer
git at videolan.org
Wed May 21 16:07:46 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed May 21 15:59:56 2014 +0200| [606a49d2e6f1eaef28515ce8801571724be783b5] | committer: Michael Niedermayer
avcodec/atrac3: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=606a49d2e6f1eaef28515ce8801571724be783b5
---
libavcodec/atrac3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index fc3b2fd..435f1ac 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);
More information about the ffmpeg-cvslog
mailing list