avcodec/hevcdsp_template: Fix undefined shift
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 2 Oct 2017 02:18:21 +0000 (04:18 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 4 Oct 2017 23:27:59 +0000 (01:27 +0200)
commit2293e5a78a6afe02197145c73f2fbf2de50d6519
tree2d78ac01e40e50593cf2b7c59c8f5f08ea123201
parent74b28c54d9afa4e1e24a9311b3913194721cb074
avcodec/hevcdsp_template: Fix undefined shift

Fixes: runtime error: left shift of negative value -255
Fixes: 3373/clusterfuzz-testcase-minimized-5604083912146944

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