History

avcodec/apv_dsp: Fix left-shift of negative value

Andreas Rheinhardt committed 1 year ago

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

Unified · Split

libavcodec/apv_dsp.c+1−1
@@ -58,7 +58,7 @@ static void apv_decode_transquant_c(void *output, · 57 unmodified lines
5858
5959 for (int y = 0; y < 8; y++) {
6060 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) +
6262 (1 << (bd_shift - 1))) >> bd_shift;
6363
6464 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