prevented excess loop, reading pes header

This commit is contained in:
souji 2015-09-16 09:04:04 +09:00
parent 5050913ba0
commit e2ed741ddd

View file

@ -138,7 +138,8 @@ public final class ParsableBitArray {
int returnValue = 0;
// While n >= 8, read whole bytes.
while (n >= 8) {
int numBytes = (n / 8);
for (int i = 0; i < numBytes; i ++) {
int byteValue;
if (bitOffset != 0) {
byteValue = ((data[byteOffset] & 0xFF) << bitOffset)