avcodec/shorten: Fix undefined shift in fix_bitshift()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 5 Jun 2018 11:15:34 +0000 (13:15 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 Jul 2018 17:06:27 +0000 (19:06 +0200)
commitc2d16aafbb1527d4b47ecfad659a381c22a017ba
tree156e3ead5a8dfe1f3271c8efca75a005f4defcf2
parentb7134d7fb679df78069648d0fb7bc54a59f9f557
avcodec/shorten: Fix undefined shift in fix_bitshift()

Fixes: left shift of negative value -9
Fixes: 8571/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SHORTEN_fuzzer-5715966875926528

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 606c7148231404544005c0827b83c165dd6b39a8)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/shorten.c