diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-28 06:26:54 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-28 06:26:54 +0200 |
commit | c30d04ceddee415bb7b66b91f289472c2a1848c6 (patch) | |
tree | aaa01e8a935b05230d3eac9317e9f71f4582bc78 | |
parent | 7b453d1c60005cd1e0461a8d06d07e89116772d4 (diff) | |
download | ffmpeg-c30d04ceddee415bb7b66b91f289472c2a1848c6.tar.gz |
lagarithrac: fix length used in ff_lag_rac_init()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/lagarithrac.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/lagarithrac.c b/libavcodec/lagarithrac.c index a3035a24d4..b3ad94189a 100644 --- a/libavcodec/lagarithrac.c +++ b/libavcodec/lagarithrac.c @@ -40,8 +40,7 @@ void ff_lag_rac_init(lag_rac *l, GetBitContext *gb, int length) align_get_bits(gb); l->bytestream_start = l->bytestream = gb->buffer + get_bits_count(gb) / 8; - l->bytestream_end = l->bytestream_start + length; - + l->bytestream_end = l->bytestream_start + get_bits_left(gb) / 8; l->range = 0x80; l->low = *l->bytestream >> 1; l->hash_shift = FFMAX(l->scale - 8, 0); |