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)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Fri, 18 Dec 2015 14:29:57 +0000 (15:29 +0100)
commit4d5c3b02e9d2c9a630ca433fabca43285879e0b8
tree6d8905878be2b95380406d4dbe34b340ace2b896
parent4386f17bbdf79d19339ab8434b15109dedfb9551
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.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/on2avc.c