avcodec/cfhd: Fix undefined shift
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 21 Jun 2017 15:56:34 +0000 (17:56 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 22 Jun 2017 01:08:57 +0000 (03:08 +0200)
commit6d951be24de8748845a6e9d8151e2e605543b44d
tree767fe8c20ab5edf2904a5cf02bef91ba8f8ec80e
parent80dc5b497e5d1f4bd66792e80c9bbbfb23c9cfb7
avcodec/cfhd: Fix undefined shift

Fixes: runtime error: left shift of negative value -1
Fixes: 2303/clusterfuzz-testcase-minimized-5529675273076736

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