[FFmpeg-cvslog] r23718 - trunk/libavcodec/vp56.h

rbultje subversion
Tue Jun 22 21:19:13 CEST 2010


Author: rbultje
Date: Tue Jun 22 21:19:13 2010
New Revision: 23718

Log:
Change a / 256 into a >> 8.

Modified:
   trunk/libavcodec/vp56.h

Modified: trunk/libavcodec/vp56.h
==============================================================================
--- trunk/libavcodec/vp56.h	Tue Jun 22 21:17:41 2010	(r23717)
+++ trunk/libavcodec/vp56.h	Tue Jun 22 21:19:13 2010	(r23718)
@@ -192,7 +192,7 @@ static inline void vp56_init_range_decod
 
 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;
 



More information about the ffmpeg-cvslog mailing list