diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-08 14:34:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-08 15:14:03 +0200 |
commit | ee5145c05d4cfe6443301f9c349af6fe1bd0b57b (patch) | |
tree | ad4533bb3e32c2f8213cf6235eceb05ff3afdabc | |
parent | 6e6bd5481cf42a9765c492c77754d4633092cece (diff) | |
download | ffmpeg-ee5145c05d4cfe6443301f9c349af6fe1bd0b57b.tar.gz |
avcodec/aacpsy: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/aacpsy.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |