avcodec/dca: remove Rice code length limit

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
foo86 2016-05-13 12:48:23 +03:00 committed by James Almer
parent 8b5941ce59
commit e0706e9cc8

View File

@ -32,7 +32,7 @@ static int get_linear(GetBitContext *gb, int n)
static int get_rice_un(GetBitContext *gb, int k)
{
unsigned int v = get_unary(gb, 1, 128);
unsigned int v = get_unary(gb, 1, get_bits_left(gb));
return (v << k) | get_bits_long(gb, k);
}