changeset 11920:7d04a6cec75f libavcodec

Change a / 256 into a >> 8.
author rbultje
date Tue, 22 Jun 2010 19:19:13 +0000
parents f021be0e837c
children f2007d7c3f1d
files vp56.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;