mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
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:
parent
c4dede3689
commit
e8bafc49f9
|
@ -264,6 +264,7 @@ final class DecodedBitStreamParser {
|
||||||
boolean upperShift = false;
|
boolean upperShift = false;
|
||||||
|
|
||||||
int[] cValues = new int[3];
|
int[] cValues = new int[3];
|
||||||
|
int shift = 0;
|
||||||
do {
|
do {
|
||||||
// If there is only one byte left then it will be encoded as ASCII
|
// If there is only one byte left then it will be encoded as ASCII
|
||||||
if (bits.available() == 8) {
|
if (bits.available() == 8) {
|
||||||
|
@ -276,7 +277,6 @@ final class DecodedBitStreamParser {
|
||||||
|
|
||||||
parseTwoBytes(firstByte, bits.readBits(8), cValues);
|
parseTwoBytes(firstByte, bits.readBits(8), cValues);
|
||||||
|
|
||||||
int shift = 0;
|
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 3; i++) {
|
||||||
int cValue = cValues[i];
|
int cValue = cValues[i];
|
||||||
switch (shift) {
|
switch (shift) {
|
||||||
|
|
Loading…
Reference in a new issue