Merge commit '0b699920f3c0b2e30969b38ce59226653f9d80ec'

* commit '0b699920f3c0b2e30969b38ce59226653f9d80ec':
  lagarith: Correctly compute hash_shift

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
Hendrik Leppkes 2015-11-10 17:43:17 +01:00
commit 2503aa6bd9
1 changed files with 1 additions and 1 deletions

View File

@ -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;