mirror of https://git.ffmpeg.org/ffmpeg.git
Merge commit '0b699920f3c0b2e30969b38ce59226653f9d80ec'
* commit '0b699920f3c0b2e30969b38ce59226653f9d80ec': lagarith: Correctly compute hash_shift Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
commit
2503aa6bd9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue