Commit 9f37d890 authored by Yaowu Xu's avatar Yaowu Xu
Browse files

optimize decode_bool operation

Change-Id: I7fe44633d29046ddd38c88c00e8520d27ac748bf
parent dde8069e
No related merge requests found
Showing with 1 addition and 1 deletion
...@@ -44,7 +44,7 @@ static int vp9_read(vp9_reader *br, int probability) { ...@@ -44,7 +44,7 @@ static int vp9_read(vp9_reader *br, int probability) {
VP9_BD_VALUE bigsplit; VP9_BD_VALUE bigsplit;
int count; int count;
unsigned int range; 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) if (br->count < 0)
vp9_reader_fill(br); vp9_reader_fill(br);
......
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