Commit 863694a4 authored by Jingning Han's avatar Jingning Han
Browse files

Avoid divisions at decoder side in supertx

Change-Id: I3c52a4759780d987d045bb7b34a27ee9f7f55117
parent 9353124f
......@@ -832,7 +832,7 @@ static void dec_extend_dir(AV1Decoder *const pbi, MACROBLOCKD *const xd,
if (mi_width > unit) {
int i;
assert(!b_sub8x8);
for (i = 0; i < mi_width / unit - 1; i++) {
for (i = 0; i < mi_width; i += unit) {
mi_col_pred += unit;
dec_predict_b_extend(pbi, xd, tile, block, mi_row, mi_col, mi_row_pred,
mi_col_pred, mi_row_top, mi_col_top, dst_buf,
......@@ -853,7 +853,7 @@ static void dec_extend_dir(AV1Decoder *const pbi, MACROBLOCKD *const xd,
if (mi_height > unit) {
int i;
for (i = 0; i < mi_height / unit - 1; i++) {
for (i = 0; i < mi_height; i += unit) {
mi_row_pred += unit;
dec_predict_b_extend(pbi, xd, tile, block, mi_row, mi_col, mi_row_pred,
mi_col_pred, mi_row_top, mi_col_top, dst_buf,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment