wavpack: limit extra_bits to 32 and use get_bits_long
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 2 Jul 2015 21:05:05 +0000 (23:05 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 26 Nov 2015 00:38:17 +0000 (01:38 +0100)
commit910df0f871dd077d0060f113c6492c25af7f313f
tree383eae5e6e306b58690efc6f34f837b9aabc951a
parent31ae0693d885f4ecf4ef750055f86467bfc5fa1d
wavpack: limit extra_bits to 32 and use get_bits_long

More than 32 bits can't be stored in an integer and get_bits should not
be used with more than 25 bits.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit d0eff8857ceff2601f85037c930cbe61a88b611e)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/wavpack.c