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>
Wed, 31 Jan 2018 21:56:14 +0000 (22:56 +0100)
commit2f7cced9bbe2126fb9466eb8b3d4915ae91c1be8
tree049b1bf9af20b945cf42ede8f6928ba0b13226f6
parent6011422a5415ee53ba195ffaa8d60f44e06cdbdf
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