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>
Sun, 17 Sep 2017 10:21:32 +0000 (12:21 +0200)
commit03bf78eba6933fff66cee51af0fa7a0f8c44677b
treef202e4498ab9f5c62a114bd50cea2dccc3d1f1d5
parentf3c3cd5afbacf99f14cdcafd6d5dffceb6d06626
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