summaryrefslogtreecommitdiff
path: root/libavcodec/libvo-aacenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-11 13:32:55 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-11 13:32:55 +0100
commit0f08b587fa29035b1dfbcdc0550051c33d33b716 (patch)
treea082ccfd8c55fc02044992d3ab2e0555076c6d96 /libavcodec/libvo-aacenc.c
parenta5334d408148f20e0680f65daa3aff837c5f5db5 (diff)
avcodec/libvo-aacenc: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libvo-aacenc.c')
-rw-r--r--libavcodec/libvo-aacenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvo-aacenc.c b/libavcodec/libvo-aacenc.c
index 7b38d518a2..2c4a424252 100644
--- a/libavcodec/libvo-aacenc.c
+++ b/libavcodec/libvo-aacenc.c
@@ -65,7 +65,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
s->last_frame = 2;
ff_af_queue_init(avctx, &s->afq);
- s->end_buffer = av_mallocz(avctx->frame_size * avctx->channels * 2);
+ s->end_buffer = av_mallocz_array(avctx->channels, avctx->frame_size * 2);
if (!s->end_buffer) {
ret = AVERROR(ENOMEM);
goto error;