avcodec/cllc: Check num_bits
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 11 May 2017 16:39:33 +0000 (18:39 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 11 May 2017 18:04:57 +0000 (20:04 +0200)
commit2bfd0a97587d26c0c39413a6291ccc66e4a928d0
tree518464aa90ebcb3b03434a122e38757def320dc3
parente717fa1f0a66825fb10fec7debad768f311ee240
avcodec/cllc: Check num_bits

Fixes: runtime error: shift exponent -2 is negative
Fixes: 1479/clusterfuzz-testcase-minimized-6638493360979968

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/cllc.c