avcodec/hevcdsp_template: Fix undefined shift in put_hevc_pel_bi_w_pixels
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Sep 2017 23:32:51 +0000 (01:32 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 11 Sep 2017 11:29:18 +0000 (13:29 +0200)
commit32fa6ce64afdc8b3ac51f61cd1ec94d3c45d2020
treec8bc44b798d4bfa1ecfb46bc321798476b33638a
parenta295d1870a8cc98e397ec51458ef5ed514ee7ee2
avcodec/hevcdsp_template: Fix undefined shift in put_hevc_pel_bi_w_pixels

Fixes: runtime error: left shift of negative value -95
Fixes: 3077/clusterfuzz-testcase-minimized-4684917524922368

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