int[] segmentQps = rc.getSegmentQps();
VPxBooleanEncoder boolEnc = new VPxBooleanEncoder(dataBuffer);
int[] segmentMap = new int[mbWidth * mbHeight];
for (int mbY = 0, mbAddr = 0; mbY < mbHeight; mbY++) {
<BUG>initValue(leftRow, 129);
</BUG>
for (int mbX = 0; mbX < mbWidth; mbX++, mbAddr++) {
int before = boolEnc.position();
int segment = rc.getSegment();
segmentMap[mbAddr] = segment;

int[] segmentQps = rc.getSegmentQps();
VPxBooleanEncoder boolEnc = new VPxBooleanEncoder(dataBuffer);
int[] segmentMap = new int[mbWidth * mbHeight];
for (int mbY = 0, mbAddr = 0; mbY < mbHeight; mbY++) {
initValue(leftRow, (byte)1);
for (int mbX = 0; mbX < mbWidth; mbX++, mbAddr++) {
int before = boolEnc.position();
int segment = rc.getSegment();
segmentMap[mbAddr] = segment;
