]> granicus.if.org Git - libvpx/commitdiff
Fix 16x16-iteration indexing bug in main encode_sb_row loop.
authorRonald S. Bultje <rbultje@google.com>
Thu, 2 May 2013 23:40:57 +0000 (16:40 -0700)
committerRonald S. Bultje <rbultje@google.com>
Thu, 2 May 2013 23:41:08 +0000 (16:41 -0700)
With this, encoder/decoder appear to match with sb8x8 experiment.
Needs some larger-scale testing.

Change-Id: I44d3cac37b3c98264985ed0a0fc763c30089aa64

vp9/encoder/vp9_encodeframe.c

index 1dd2800954bff6b406303c817ee6ef23c1f314b6..3b10aa7fd3b08524b4b97c4e31f2504c691fcc65 100644 (file)
@@ -1220,7 +1220,7 @@ static void encode_sb_row(VP9_COMP *cpi,
 
         // Dummy encode, do not do the tokenization
 #if CONFIG_SB8X8
-        encode_sb(cpi, tp, mi_row + y_idx, mi_col + x_idx, 0,
+        encode_sb(cpi, tp, mi_row + y_idx_m, mi_col + x_idx_m, 0,
                   BLOCK_SIZE_MB16X16, mb_partitioning[i][j], NULL, NULL);
 #else
         encode_macroblock(cpi, tp, 0, mi_row + y_idx_m,