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, 31 Jan 2018 21:56:14 +0000 (22:56 +0100)
commitc665a934388906119c6eaba95c2ea73ef048c129
treefeecc07eddb5b34144116e8443f61a11e57445c1
parent6d03495c70547e170ac26cafb16a66324aedc719
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