diff options
author | foo86 <foobaz86@gmail.com> | 2016-05-13 12:48:23 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-05-20 14:11:49 -0300 |
commit | e0706e9cc8f30a8242d2b140edace7bf76170506 (patch) | |
tree | 0c257c71c2ca1ec5f5ff55f38a0ca40a0d44448f /libavcodec/dca_xll.c | |
parent | 8b5941ce5954e26d372b8bf88babfa3d62175dd0 (diff) | |
download | ffmpeg-e0706e9cc8f30a8242d2b140edace7bf76170506.tar.gz |
avcodec/dca: remove Rice code length limit
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/dca_xll.c')
-rw-r--r-- | libavcodec/dca_xll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dca_xll.c b/libavcodec/dca_xll.c index 316af27b89..e43ee6aab8 100644 --- a/libavcodec/dca_xll.c +++ b/libavcodec/dca_xll.c @@ -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); } |