From 92cc6d5163cd43a1a909dcc63787292f33e5d6ed Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 25 Apr 2014 15:07:31 +0200 Subject: [PATCH] avcodec/mdct_template: Use av_malloc_array() Signed-off-by: Michael Niedermayer --- libavcodec/mdct_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;