diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-30 03:13:30 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-03 19:56:04 +0100 |
commit | ccfd8cffe867d534447dbc5beb96ff39e65e2791 (patch) | |
tree | d687b6ab38ee76c763be580ab7ec28355db293a2 /libavcodec | |
parent | 773fc6e0c7122740c3dd6530df6406282ced34da (diff) | |
download | ffmpeg-ccfd8cffe867d534447dbc5beb96ff39e65e2791.tar.gz |
qdm2: Fix data type used in multiplication.
Avoid unintended truncation.
Fixes CID700555
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/qdm2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c index ca2aab7b56..9bc0720140 100644 --- a/libavcodec/qdm2.c +++ b/libavcodec/qdm2.c @@ -685,7 +685,7 @@ static void fill_coding_method_array (sb_int8_array tone_level_idx, sb_int8_arra 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++) |