aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-11-12 19:10:44 +0100
committerLuca Barbato <lu_zero@gentoo.org>2015-01-13 00:16:40 +0100
commite9aeaa6441f6fd18fc951d9737887dcf8a9584c0 (patch)
treee4f63bc023bc37b10dce398a7945b025fc3b8804
parentcce99f72d1b49d3dfee859136eeff3db32553750 (diff)
downloadffmpeg-e9aeaa6441f6fd18fc951d9737887dcf8a9584c0.tar.gz
qdm2: avoid integer overflow
CC: libav-stable@libav.org Bug-Id: CID 700555 (cherry picked from commit 1f80742f49a9a4e846c9f099387881abc87150b2) Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r--libavcodec/qdm2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c
index 94bda9169a..4718b34942 100644
--- a/libavcodec/qdm2.c
+++ b/libavcodec/qdm2.c
@@ -730,7 +730,7 @@ static void fill_coding_method_array(sb_int8_array tone_level_idx,
for (j = 0; j < 64; j++)
acc += tone_level_idx_temp[ch][sb][j];
- multres = 0x66666667 * (acc * 10);
+ multres = 0x66666667LL * (acc * 10);
esp_40 = (multres >> 32) / 8 + ((multres & 0xffffffff) >> 31);
for (ch = 0; ch < nb_channels; ch++)
for (sb = 0; sb < 30; sb++)