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 22:21:32 +0000 (23:21 +0100)
commit57a9f159e01d729ea16780c9c8c11739cdf4c77a
tree54598ac097ce6a277100a88bc491e8c82be06dad
parent540b64235a0e014da8e2055db1e77ce72df208bb
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