avcodec/aacpsy: Use av_mallocz_array()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 8 Jun 2014 12:34:31 +0000 (14:34 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 8 Jun 2014 13:14:03 +0000 (15:14 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/aacpsy.c

index d2a782e..9eeb836 100644 (file)
@@ -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);