Commit 103c4603 authored by Yaowu Xu's avatar Yaowu Xu Committed by Gerrit Code Review

Merge "optimize decode_bool operation"

parents 27885631 9f37d890
......@@ -44,7 +44,7 @@ static int vp9_read(vp9_reader *br, int probability) {
VP9_BD_VALUE bigsplit;
int count;
unsigned int range;
unsigned int split = 1 + (((br->range - 1) * probability) >> 8);
unsigned int split = ((br->range * probability) + (256 - probability)) >> 8;
if (br->count < 0)
vp9_reader_fill(br);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment