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>
Tue, 3 Oct 2017 18:34:35 +0000 (20:34 +0200)
commitfbdab6eca7874fbeba6aa79c269f345e4d43f5d4
tree2e6a3dedc42dad387d3c6f5ef9babfe8568d2b37
parent87e625c2633a83f62f155fcca33dab0a6e2bb5e6
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>
libavcodec/hevcdsp_template.c