avcodec/lagarithrac.h/lag_get_rac: drop apparently unneeded operations

This commit is contained in:
Michael Niedermayer 2014-05-27 01:33:12 +02:00
parent 625ffa1457
commit 4fb4bf7289
1 changed files with 2 additions and 3 deletions

View File

@ -93,10 +93,9 @@ static inline uint8_t lag_get_rac(lag_rac *l)
*/
low_scaled = FASTDIV(l->low - (l->low >> 24), div);
shift -= l->hash_shift;
shift &= 31;
low_scaled = (low_scaled << shift) | (low_scaled >> (32 - shift));
low_scaled = (low_scaled >> (32 - shift));
/* low_scaled is now a lower bound of low/range_scaled */
val = l->range_hash[(uint8_t) low_scaled];
val = l->range_hash[low_scaled];
while (l->low >= range_scaled * l->prob[val + 1])
val++;
}