avcodec/ylc: Fix vlc of 31 bits
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 8 Jul 2017 20:51:57 +0000 (22:51 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 19 Jul 2017 01:40:21 +0000 (03:40 +0200)
commit6405c66a5142a06338b6cf6bfdf8b9c1921bf39b
tree7fb65336b785fa341a1eac44cdcc0d5f8b41c0bc
parenta76db7176ab8ff0eaf28f97d79254fe96a4dd520
avcodec/ylc: Fix vlc of 31 bits

Fixes: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
Fixes: 2515/clusterfuzz-testcase-minimized-6197200012967936

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit fe9242204d33db070b8a9d907d93c9ead8a6f3ee)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ylc.c