git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2c7816
)
avcodec/dct: use av_malloc_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 11 May 2014 18:06:45 +0000
(20:06 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 11 May 2014 18:06:45 +0000
(20:06 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dct.c
patch
|
blob
|
history
diff --git
a/libavcodec/dct.c
b/libavcodec/dct.c
index
b1ee06a
..
26b4851
100644
(file)
--- 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);