corrected lazy crc logic

This commit is contained in:
Arndt Brenschede 2019-07-22 19:25:13 +02:00
parent e4c11e6dbf
commit 0a6ead24a1
5 changed files with 24 additions and 23 deletions

View file

@ -287,9 +287,9 @@ public class BitCoderContext
{
while (bits < 24)
{
if ( idx < idxMax )
if ( idx++ < idxMax )
{
b |= (ab[++idx] & 0xff) << bits;
b |= (ab[idx] & 0xff) << bits;
}
bits += 8;
}