summaryrefslogtreecommitdiff
path: root/libavcodec/mdct_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/mdct_template.c')
-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;