Avoid unintended truncation.
Fixes CID700555
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -685,7 +685,7 @@ static void fill_coding_method_array (sb_int8_array tone_level_idx, sb_int8_arra |
685 | 685 |
for (j = 0; j < 64; j++) |
686 | 686 |
acc += tone_level_idx_temp[ch][sb][j]; |
687 | 687 |
|
688 |
- multres = 0x66666667 * (acc * 10); |
|
688 |
+ multres = 0x66666667LL * (acc * 10); |
|
689 | 689 |
esp_40 = (multres >> 32) / 8 + ((multres & 0xffffffff) >> 31); |
690 | 690 |
for (ch = 0; ch < nb_channels; ch++) |
691 | 691 |
for (sb = 0; sb < 30; sb++) |