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>
Sun, 19 Jul 2015 07:43:20 +0000 (09:43 +0200)
commitf0af6e705f3b30f7f5afa3c24db27433af6b1bfc
tree349aa55a2813a3dd79b90baba4474ffc749af102
parent70b97a89d2d7ba837c830b1da5924314d68fc3e7
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