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:28:03 +0000 (01:28 +0200)
commit636fa97e8845959a465b5b30d2996ce9805159dd
treeaae990d210520eb37064767aae57e8955cd4338d
parent4b4c7935da5366a61df9862563be1ea128d2fbe4
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