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>
Fri, 1 Dec 2017 23:28:59 +0000 (00:28 +0100)
commita65633aa9d2291244d039abeda2864492ca810c6
tree59ad751f43143555527ac5b3abf0509df70195ff
parent78b6e8fb233f52284d6a3bee169361f5ee82c79f
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