Commit 24222cc1 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/opus_imdct: Use av_malloc_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b08b5f4b
...@@ -105,11 +105,11 @@ av_cold int ff_celt_imdct_init(CeltIMDCTContext **ps, int N) ...@@ -105,11 +105,11 @@ av_cold int ff_celt_imdct_init(CeltIMDCTContext **ps, int N)
s->len4 = len2 / 2; s->len4 = len2 / 2;
s->len2 = len2; s->len2 = len2;
s->tmp = av_malloc(len * 2 * sizeof(*s->tmp)); s->tmp = av_malloc_array(len, 2 * sizeof(*s->tmp));
if (!s->tmp) if (!s->tmp)
goto fail; goto fail;
s->twiddle_exptab = av_malloc(s->len4 * sizeof(*s->twiddle_exptab)); s->twiddle_exptab = av_malloc_array(s->len4, sizeof(*s->twiddle_exptab));
if (!s->twiddle_exptab) if (!s->twiddle_exptab)
goto fail; goto fail;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment