aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-06-22 19:19:13 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-06-22 19:19:13 +0000
commitc6ef6e14cfc472b8077f2d0805c092aeebc1c0f2 (patch)
tree07e4f5e714c65ae04bc233346d8f45ee43af1306 /libavcodec
parenta815602aa38ca1a6df75c4fb13790a96306d5122 (diff)
downloadffmpeg-c6ef6e14cfc472b8077f2d0805c092aeebc1c0f2.tar.gz
Change a / 256 into a >> 8.
Originally committed as revision 23718 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vp56.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp56.h b/libavcodec/vp56.h
index 89eba0563e..0b6f2a870c 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;