avcodec/ituh263dec: Fix runtime error: left shift of negative value -22

Fixes: 639/clusterfuzz-testcase-5143866241974272

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2017-02-21 17:32:56 +01:00
parent a59505ca76
commit 631f748491
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,7 @@ retry:
}else{ }else{
level = SHOW_UBITS(re, &s->gb, 5); level = SHOW_UBITS(re, &s->gb, 5);
SKIP_CACHE(re, &s->gb, 5); SKIP_CACHE(re, &s->gb, 5);
level |= SHOW_SBITS(re, &s->gb, 6)<<5; level |= SHOW_SBITS(re, &s->gb, 6) * (1<<5);
SKIP_COUNTER(re, &s->gb, 5 + 6); SKIP_COUNTER(re, &s->gb, 5 + 6);
} }
} }