Commit 2503aa6b authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '0b699920'

* commit '0b699920':
  lagarith: Correctly compute hash_shift
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents d786cdff 0b699920
......@@ -45,7 +45,7 @@ void ff_lag_rac_init(lag_rac *l, GetBitContext *gb, int length)
l->range = 0x80;
l->low = *l->bytestream >> 1;
l->hash_shift = FFMAX((int)l->scale - 10, 0);
l->hash_shift = FFMAX(l->scale, 10) - 10;
for (i = j = 0; i < 1024; i++) {
unsigned r = i << l->hash_shift;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment