avcodec/hevcpred_template: Fix left shift of negative value
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 17 Jun 2017 12:54:19 +0000 (14:54 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 19 Jul 2017 13:26:37 +0000 (15:26 +0200)
commit7119574f4831f22df5f026f691b6da1f1d687355
treeb032eff7c369812d17272945f1ab7d7e4050dd41
parentf17443cdcdfadf6c32b390db936215b56396ad85
avcodec/hevcpred_template: Fix left shift of negative value

Fixes: runtime error: left shift of negative value -1
Fixes: 2250/clusterfuzz-testcase-minimized-5693382112313344

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