projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a815602
)
Change a / 256 into a >> 8.
author
Ronald S. Bultje
<rsbultje@gmail.com>
Tue, 22 Jun 2010 19:19:13 +0000
(19:19 +0000)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Tue, 22 Jun 2010 19:19:13 +0000
(19:19 +0000)
Originally committed as revision 23718 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/vp56.h
patch
|
blob
|
history
diff --git
a/libavcodec/vp56.h
b/libavcodec/vp56.h
index
89eba05
..
0b6f2a8
100644
(file)
--- 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;