aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-25 15:07:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-25 15:07:31 +0200
commit92cc6d5163cd43a1a909dcc63787292f33e5d6ed (patch)
tree4876a595ccd6218629123b8525edea9051bb7bfb /libavcodec
parent681a5b8d6f35ce72fdcd57e62e4b8c763c720779 (diff)
downloadffmpeg-92cc6d5163cd43a1a909dcc63787292f33e5d6ed.tar.gz
avcodec/mdct_template: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mdct_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mdct_template.c b/libavcodec/mdct_template.c
index a66ac4c47d..7fa8bcce56 100644
--- a/libavcodec/mdct_template.c
+++ b/libavcodec/mdct_template.c
@@ -60,7 +60,7 @@ av_cold int ff_mdct_init(FFTContext *s, int nbits, int inverse, double scale)
if (ff_fft_init(s, s->mdct_bits - 2, inverse) < 0)
goto fail;
- s->tcos = av_malloc(n/2 * sizeof(FFTSample));
+ s->tcos = av_malloc_array(n/2, sizeof(FFTSample));
if (!s->tcos)
goto fail;