[SCM] libav/experimental: Change a / 256 into a >> 8.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:09:02 UTC 2013
The following commit has been merged in the experimental branch:
commit c6ef6e14cfc472b8077f2d0805c092aeebc1c0f2
Author: Ronald S. Bultje <rsbultje at gmail.com>
Date: Tue Jun 22 19:19:13 2010 +0000
Change a / 256 into a >> 8.
Originally committed as revision 23718 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/vp56.h b/libavcodec/vp56.h
index 89eba05..0b6f2a8 100644
--- a/libavcodec/vp56.h
+++ b/libavcodec/vp56.h
@@ -192,7 +192,7 @@ static inline void vp56_init_range_decoder(VP56RangeCoder *c,
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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list