avcodec/hevcdsp_template: Fix undefined shift in put_hevc_epel_bi_w_h()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 30 Nov 2017 20:27:37 +0000 (21:27 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 30 Dec 2017 20:11:32 +0000 (21:11 +0100)
commitc8bbddf057e6f26df1f45bad15d1a339ad9289e6
tree4fe093a3e869f86fbb547a4ed4451f51430bd007
parentcead6c94c502a90f1318ddc47885bfaa407068dd
avcodec/hevcdsp_template: Fix undefined shift in put_hevc_epel_bi_w_h()

Fixes: runtime error: left shift of negative value -127
Fixes: 4397/clusterfuzz-testcase-minimized-4779061080489984

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