History

avcodec/ituh263dec: Fix undefined left shift of negative number

Fixes ticket #8160.

Andreas Rheinhardt committed 7 years ago

Commit 324487b1 parent b7f156e1 file · +1 −1Browse files

Unified · Split

libavcodec/ituh263dec.c+1−1
@@ -1281,7 +1281,7 @@ int ff_h263_decode_picture_header(MpegEncContext *s) · 1280 unmodified lines
12811281 for(i=0; i<13; i++){
12821282 for(j=0; j<3; j++){
12831283 int v= get_bits(&s->gb, 8);
1284− v |= get_sbits(&s->gb, 8)<<8;
1284+ v |= get_sbits(&s->gb, 8) * (1 << 8);
12851285 av_log(s->avctx, AV_LOG_DEBUG, " %5d", v);
12861286 }
12871287 av_log(s->avctx, AV_LOG_DEBUG, "\n");

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