Properly schedule the transform block recursion order
This commit replaces the offset based block index calculation with
incremental based one. It does not change the coding statistics.
Change-Id: I3789294eb45416bd0823e773ec30f05ed41ba0dc
diff --git a/av1/encoder/bitstream.c b/av1/encoder/bitstream.c
index 1de931e..0459603 100644
--- a/av1/encoder/bitstream.c
+++ b/av1/encoder/bitstream.c
@@ -856,7 +856,8 @@
if (offsetr >= max_blocks_high || offsetc >= max_blocks_wide) continue;
pack_txb_tokens(w, tp, tok_end, xd, mbmi, plane, plane_bsize, bit_depth,
- block + i * step, offsetr, offsetc, sub_txs);
+ block, offsetr, offsetc, sub_txs);
+ block += step;
}
}
}