Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoo86 <foobaz86@gmail.com>2016-05-13 12:48:23 +0300
committerJames Almer <jamrial@gmail.com>2016-05-20 20:11:49 +0300
commite0706e9cc8f30a8242d2b140edace7bf76170506 (patch)
tree0c257c71c2ca1ec5f5ff55f38a0ca40a0d44448f /libavcodec/dca_xll.c
parent8b5941ce5954e26d372b8bf88babfa3d62175dd0 (diff)
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.c2
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);
}