aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-08 15:35:47 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-08 15:35:47 +0200
commitc8a1f10cf486faa204aeeda5dac2d23912103cc3 (patch)
tree342d1e8e1f1dc0a02558d05879b0623b82922735
parent9b467d3cd593c18dc0f8dac108da6a8c39ea2bb3 (diff)
downloadffmpeg-c8a1f10cf486faa204aeeda5dac2d23912103cc3.tar.gz
avcodec/ac3enc_float: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/ac3enc_float.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3enc_float.c b/libavcodec/ac3enc_float.c
index 35fb4189cd..55ea422ddf 100644
--- a/libavcodec/ac3enc_float.c
+++ b/libavcodec/ac3enc_float.c
@@ -73,7 +73,7 @@ av_cold int ff_ac3_float_mdct_init(AC3EncodeContext *s)
n = 1 << 9;
n2 = n >> 1;
- window = av_malloc(n * sizeof(*window));
+ window = av_malloc_array(n, sizeof(*window));
if (!window) {
av_log(s->avctx, AV_LOG_ERROR, "Cannot allocate memory.\n");
return AVERROR(ENOMEM);