Minor fix to carry shift value across input triads

git-svn-id: https://zxing.googlecode.com/svn/trunk@1670 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2010-11-25 17:39:17 +00:00
parent c4dede3689
commit e8bafc49f9

View file

@ -264,6 +264,7 @@ final class DecodedBitStreamParser {
boolean upperShift = false;
int[] cValues = new int[3];
int shift = 0;
do {
// If there is only one byte left then it will be encoded as ASCII
if (bits.available() == 8) {
@ -276,7 +277,6 @@ final class DecodedBitStreamParser {
parseTwoBytes(firstByte, bits.readBits(8), cValues);
int shift = 0;
for (int i = 0; i < 3; i++) {
int cValue = cValues[i];
switch (shift) {