Browse Source

avcodec/aacpsy: Use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
ee5145c05d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/aacpsy.c

+ 1
- 1
libavcodec/aacpsy.c View 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);



Loading…
Cancel
Save