Version.ECB ecBlock = ecBlockArray[j];\r
for (int i = 0; i < ecBlock.getCount(); i++) {\r
int numDataCodewords = ecBlock.getDataCodewords();\r
- int numBlockCodewords = ecBlocks.getECCodewords() + numDataCodewords;\r
+ int numBlockCodewords = ecBlocks.getECCodewordsPerBlock() + numDataCodewords;\r
result[numResultBlocks++] = new DataBlock(numDataCodewords, new byte[numBlockCodewords]);\r
}\r
}\r
}\r
longerBlocksStartAt++;\r
\r
- int shorterBlocksNumDataCodewords = shorterBlocksTotalCodewords - ecBlocks.getECCodewords();\r
+ int shorterBlocksNumDataCodewords = shorterBlocksTotalCodewords - ecBlocks.getECCodewordsPerBlock();\r
// The last elements of result may be 1 element longer;\r
// first fill out as many elements as all of them have\r
int rawCodewordsOffset = 0;\r