on2avc: limit number of bits to 30 in get_egolomb
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Wed, 16 Dec 2015 15:48:19 +0000 (16:48 +0100)
committerAnton Khirnov <anton@khirnov.net>
Wed, 13 Jan 2016 08:33:09 +0000 (09:33 +0100)
commit2884cf205a9a29d89db7a444c5b1613cdfe37acf
treef440a098ff6bce0fa95b4a5205fc5aa397c4e8c8
parentc59fec783d6540dd96540b079d753ee4a6ad2e58
on2avc: limit number of bits to 30 in get_egolomb

More don't fit into the integer output.

Also use get_bits_long, since get_bits only supports reading up to 25
bits, while get_bits_long supports the full integer range.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/on2avc.c