avcodec/wavpack: Fix 280:22: runtime error: left shift of negative value -1

Fixes: 653/clusterfuzz-testcase-5773837415219200
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-23 15:19:30 +01:00
parent 5eb04570f6
commit 58f3469cc6
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ error:
static inline int wv_get_value_integer(WavpackFrameContext *s, uint32_t *crc,
int S)
{
int bit;
unsigned bit;
if (s->extra_bits) {
S <<= s->extra_bits;