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>
Thu, 28 Dec 2017 19:26:53 +0000 (20:26 +0100)
commit52b7672ef65407ea32b6f17262712ddb894acd73
tree328e47b23dda662900f256c2c043c1c2dbfc2c88
parentd758323bfaecf27cbd57fd7a442fc29bde9289c4
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