mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Change a / 256 into a >> 8.
Originally committed as revision 23718 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a815602aa3
commit
c6ef6e14cf
@ -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)
|
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;
|
unsigned int low_shift = low << 8;
|
||||||
int bit = c->code_word >= low_shift;
|
int bit = c->code_word >= low_shift;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user