avcodec/hevcdsp_template: Fix undefined shift in put_hevc_qpel_bi_w_hv()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 15 Dec 2017 12:06:30 +0000 (13:06 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 30 Dec 2017 20:11:32 +0000 (21:11 +0100)
commitbadca11741ea9bd0b4aa1b3af69f38754d4c69e0
tree1746ccb71815ed5409cb8130b898ad803e1a56f6
parentb7c9f27ad6e8e3bb8693548da6901af20e128b0e
avcodec/hevcdsp_template: Fix undefined shift in put_hevc_qpel_bi_w_hv()

Fixes: runtime error: left shift of negative value -3
Fixes: 4524/clusterfuzz-testcase-minimized-6055590120914944

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