From ee5145c05d4cfe6443301f9c349af6fe1bd0b57b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 8 Jun 2014 14:34:31 +0200 Subject: [PATCH] avcodec/aacpsy: Use av_mallocz_array() Signed-off-by: Michael Niedermayer --- libavcodec/aacpsy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/aacpsy.c b/libavcodec/aacpsy.c index d2a782e8dd..9eeb836523 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);