avcodec/ffv1dec_template: Fix undefined shift
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 11 Aug 2017 16:20:03 +0000 (18:20 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 17 Sep 2017 10:21:32 +0000 (12:21 +0200)
commit04db307c77c18b6e1832a086f676db0db9c152a7
treefe1700305f1f544409f394e2a566ab0024ae296f
parent342d5c20ce0a48074043d630e68629600b59ebdd
avcodec/ffv1dec_template: Fix undefined shift

Fixes: runtime error: left shift of negative value -127
Fixes: 2834/clusterfuzz-testcase-minimized-5988039123795968

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