History

avcodec/apv_dsp: Fix left-shift of negative value

Andreas Rheinhardt committed 1 year ago

Commit 0b588bf1 parent c681d8e1 file · +1 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/apv_dsp.c+1−1
@@ -58,7 +58,7 @@ static void apv_decode_transquant_c(void *output, · 57 unmodified lines
58 58
59 for (int y = 0; y < 8; y++) {59 for (int y = 0; y < 8; y++) {
60 for (int x = 0; x < 8; x++) {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 (1 << (bd_shift - 1))) >> bd_shift;62 (1 << (bd_shift - 1))) >> bd_shift;
63 63
64 scaled_coeff[y][x] =64 scaled_coeff[y][x] =

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t