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)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 22 Jul 2015 23:37:07 +0000 (01:37 +0200)
commite812220a304de49abe2a9553692dfd487ec9a888
tree3d7f3ecb06f2bea710a3c9d3d8e93ee41600eb70
parent7f84858dcf49bc747805b247151b96de7606555a
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>
(cherry picked from commit f0af6e705f3b30f7f5afa3c24db27433af6b1bfc)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/wavpack.c