aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-11 20:06:45 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-11 20:06:45 +0200
commit5e95551199871e5912c7bd498cbcc502d33113aa (patch)
treed177aa0a86e09a4d8d5e1cfc5b308989f3aa6607
parente2c7816ab0d1998bb07f9138d30fbb41406fca90 (diff)
downloadffmpeg-5e95551199871e5912c7bd498cbcc502d33113aa.tar.gz
avcodec/dct: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/dct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dct.c b/libavcodec/dct.c
index b1ee06a817..26b485106d 100644
--- a/libavcodec/dct.c
+++ b/libavcodec/dct.c
@@ -190,7 +190,7 @@ av_cold int ff_dct_init(DCTContext *s, int nbits, enum DCTTransformType inverse)
ff_init_ff_cos_tabs(nbits + 2);
s->costab = ff_cos_tabs[nbits + 2];
- s->csc2 = av_malloc(n / 2 * sizeof(FFTSample));
+ s->csc2 = av_malloc_array(n / 2, sizeof(FFTSample));
if (ff_rdft_init(&s->rdft, nbits, inverse == DCT_III) < 0) {
av_free(s->csc2);