Browse Source

avcodec/takdec: Fix runtime error: left shift of negative value -63

Fixes: 1713/clusterfuzz-testcase-minimized-5791887476654080

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit d66193252b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.1.9
Michael Niedermayer 8 years ago
parent
commit
56ce2cae38
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/takdec.c

+ 1
- 1
libavcodec/takdec.c View File

@@ -860,7 +860,7 @@ static int tak_decode_frame(AVCodecContext *avctx, void *data,

if (s->sample_shift[chan] > 0)
for (i = 0; i < s->nb_samples; i++)
decoded[i] <<= s->sample_shift[chan];
decoded[i] *= 1 << s->sample_shift[chan];
}
}



Loading…
Cancel
Save