# HG changeset patch # User rbultje # Date 1277234353 0 # Node ID 7d04a6cec75f613a79b0fc2c24af78c1192e55a0 # Parent f021be0e837cab05d9515853f051b5a8e8b27341 Change a / 256 into a >> 8. diff -r f021be0e837c -r 7d04a6cec75f vp56.h --- a/vp56.h Tue Jun 22 19:17:41 2010 +0000 +++ b/vp56.h Tue Jun 22 19:19:13 2010 +0000 @@ -192,7 +192,7 @@ static inline int vp56_rac_get_prob(VP56RangeCoder *c, uint8_t prob) { - unsigned int low = 1 + (((c->high - 1) * prob) / 256); + unsigned int low = 1 + (((c->high - 1) * prob) >> 8); unsigned int low_shift = low << 8; int bit = c->code_word >= low_shift;