possible endless loop above 24 bits
This commit is contained in:
parent
c517ccc2df
commit
638ce5bbd7
1 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,10 @@ public class BitCoderContext
|
||||||
int range = 1;
|
int range = 1;
|
||||||
int cnt = 1;
|
int cnt = 1;
|
||||||
fillBuffer();
|
fillBuffer();
|
||||||
|
if ( (b & 0xffffff ) == 0 )
|
||||||
|
{
|
||||||
|
return decodeVarBits2(); // fast version limited to 24 bit
|
||||||
|
}
|
||||||
while ((b & range) == 0)
|
while ((b & range) == 0)
|
||||||
{
|
{
|
||||||
range = (range << 1) | 1;
|
range = (range << 1) | 1;
|
||||||
|
|
Loading…
Reference in a new issue