History

avcodec/h264_direct: Fix runtime error: left shift of negative value -14

Fixes: 682/clusterfuzz-testcase-4799120021651456

Michael Niedermayer committed 9 years ago

Commit 4bd3f1c1 parent 2c00b371 file · +1 −1Browse files

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

Unified · Split

libavcodec/h264_direct.c+1−1
@@ -614,7 +614,7 @@ single_col: · 613 unmodified lines
614614
615615 {
616616 const int16_t *mv_col = l1mv[x8 * 3 + y8 * b4_stride];
617− int my_col = (mv_col[1] << y_shift) / 2;
617+ int my_col = (mv_col[1] * (1 << y_shift)) / 2;
618618 int mx = (scale * mv_col[0] + 128) >> 8;
619619 int my = (scale * my_col + 128) >> 8;
620620 fill_rectangle(&sl->mv_cache[0][scan8[i8 * 4]], 2, 2, 8,

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