diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-08 15:35:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-08 15:35:47 +0200 |
commit | c8a1f10cf486faa204aeeda5dac2d23912103cc3 (patch) | |
tree | 342d1e8e1f1dc0a02558d05879b0623b82922735 | |
parent | 9b467d3cd593c18dc0f8dac108da6a8c39ea2bb3 (diff) | |
download | ffmpeg-c8a1f10cf486faa204aeeda5dac2d23912103cc3.tar.gz |
avcodec/ac3enc_float: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/ac3enc_float.c | 2 |
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); |