avcodec/hevcdsp_template.c: Fix undefined shift in FUNC(dequant)
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 22 Dec 2017 02:12:03 +0000 (03:12 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jan 2018 22:19:14 +0000 (23:19 +0100)
commit954c2b07b6fe2a745feb42a9364fbfcdd932002f
tree44a0b8db1bd7075d7079dc6bc5f0f9bcfc8c1cc7
parent2c60731777f62873a951a9c1857f8315315d1b4b
avcodec/hevcdsp_template.c: Fix undefined shift in FUNC(dequant)

Fixes: runtime error: left shift of negative value -180
Fixes: 4626/clusterfuzz-testcase-minimized-5647837887987712

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 0c9ab5ef9c1ee852c80c859c9e07efe8730b57ed)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/hevcdsp_template.c