diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-12 23:11:44 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-12 23:36:00 +0100 |
commit | 24222cc1d5caaeaad8df69904bc546bf9d34caa3 (patch) | |
tree | 1c8517b9bd374a9977068fdb74489a48bb0f764b /libavcodec | |
parent | b08b5f4be2cca4a5e095e268947dfa6207399bc3 (diff) | |
download | ffmpeg-24222cc1d5caaeaad8df69904bc546bf9d34caa3.tar.gz |
avcodec/opus_imdct: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/opus_imdct.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/opus_imdct.c b/libavcodec/opus_imdct.c index 0a6fca994e..126e882ea6 100644 --- a/libavcodec/opus_imdct.c +++ b/libavcodec/opus_imdct.c @@ -105,11 +105,11 @@ av_cold int ff_celt_imdct_init(CeltIMDCTContext **ps, int N) s->len4 = len2 / 2; 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) 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) goto fail; |