[FFmpeg-cvslog] avcodec/libvo-aacenc: Use av_mallocz_array()

Michael Niedermayer git at videolan.org
Sun Jan 11 14:01:54 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jan 11 13:32:55 2015 +0100| [0f08b587fa29035b1dfbcdc0550051c33d33b716] | committer: Michael Niedermayer

avcodec/libvo-aacenc: Use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0f08b587fa29035b1dfbcdc0550051c33d33b716
---

 libavcodec/libvo-aacenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libvo-aacenc.c b/libavcodec/libvo-aacenc.c
index 7b38d51..2c4a424 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;



More information about the ffmpeg-cvslog mailing list