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

Michael Niedermayer git at videolan.org
Sun Jun 8 15:14:23 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jun  8 14:34:31 2014 +0200| [ee5145c05d4cfe6443301f9c349af6fe1bd0b57b] | committer: Michael Niedermayer

avcodec/aacpsy:  Use av_mallocz_array()

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

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

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

diff --git a/libavcodec/aacpsy.c b/libavcodec/aacpsy.c
index d2a782e..9eeb836 100644
--- a/libavcodec/aacpsy.c
+++ b/libavcodec/aacpsy.c
@@ -354,7 +354,7 @@ static av_cold int psy_3gpp_init(FFPsyContext *ctx) {
         }
     }
 
-    pctx->ch = av_mallocz(sizeof(AacPsyChannel) * ctx->avctx->channels);
+    pctx->ch = av_mallocz_array(ctx->avctx->channels, sizeof(AacPsyChannel));
 
     lame_window_init(pctx, ctx->avctx);
 



More information about the ffmpeg-cvslog mailing list