Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -58,7 +58,7 @@ static void apv_decode_transquant_c(void *output, · 57 unmodified lines | ||
| 58 | 58 | |
| 59 | 59 | for (int y = 0; y < 8; y++) { |
| 60 | 60 | for (int x = 0; x < 8; x++) { |
| 61 | − int coeff = (((input[y][x] * qmatrix[y][x]) << qp_shift) + | |
| 61 | + int coeff = (input[y][x] * qmatrix[y][x] * (1 << qp_shift) + | |
| 62 | 62 | (1 << (bd_shift - 1))) >> bd_shift; |
| 63 | 63 | |
| 64 | 64 | scaled_coeff[y][x] = |