[FFmpeg-cvslog] avcodec/dca: remove Rice code length limit

foo86 git at videolan.org
Fri May 20 19:12:58 CEST 2016


ffmpeg | branch: master | foo86 <foobaz86 at gmail.com> | Fri May 13 12:48:23 2016 +0300| [e0706e9cc8f30a8242d2b140edace7bf76170506] | committer: James Almer

avcodec/dca: remove Rice code length limit

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e0706e9cc8f30a8242d2b140edace7bf76170506
---

 libavcodec/dca_xll.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dca_xll.c b/libavcodec/dca_xll.c
index 316af27..e43ee6a 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);
 }
 



More information about the ffmpeg-cvslog mailing list