avcodec/hevcdsp_template: Fix invalid shift in put_hevc_epel_bi_w_v()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 17 Nov 2017 21:01:29 +0000 (22:01 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 1 Dec 2017 23:28:59 +0000 (00:28 +0100)
commitbf44f250a2234d963489642eadcf32e79f9bb804
treeb2fc6763b4b512a7c12cf7f56f9e09afcb104a8d
parenta3606385f075170dd67d54dfe3ca6b760730fed2
avcodec/hevcdsp_template: Fix invalid shift in put_hevc_epel_bi_w_v()

Fixes: runtime error: left shift of negative value -255
Fixes: 4037/clusterfuzz-testcase-minimized-5290998163832832

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