summaryrefslogtreecommitdiffstats
path: root/libavcodec/aacpsy.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-08 14:34:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-08 15:14:03 +0200
commitee5145c05d4cfe6443301f9c349af6fe1bd0b57b (patch)
treead4533bb3e32c2f8213cf6235eceb05ff3afdabc /libavcodec/aacpsy.c
parent6e6bd5481cf42a9765c492c77754d4633092cece (diff)
downloadffmpeg-streaming-ee5145c05d4cfe6443301f9c349af6fe1bd0b57b.zip
ffmpeg-streaming-ee5145c05d4cfe6443301f9c349af6fe1bd0b57b.tar.gz
avcodec/aacpsy: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aacpsy.c')
-rw-r--r--libavcodec/aacpsy.c2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud