Bug fix: call set_offsets before rd_auto_partition_range
authorScott LaVarnway <slavarnway@google.com>
Fri, 9 Aug 2013 18:09:49 +0000 (14:09 -0400)
committerScott LaVarnway <slavarnway@google.com>
Fri, 9 Aug 2013 18:09:49 +0000 (14:09 -0400)
The set_offsets call is necessary inorder to set the
mode_info_context ptr correctly.

Change-Id: I644910cc5bacc50ee9cd78458843274ad8ee636d

vp9/encoder/vp9_encodeframe.c

index 033b6a8..5d09024 100644 (file)
@@ -1941,6 +1941,7 @@ static void encode_sb_row(VP9_COMP *cpi, int mi_row, TOKENEXTRA **tp,
             || cpi->is_src_frame_alt_ref) {
           // If required set upper and lower partition size limits
           if (cpi->sf.auto_min_max_partition_size) {
+            set_offsets(cpi, mi_row, mi_col, BLOCK_64X64);
             rd_auto_partition_range(cpi,
                                     &cpi->sf.min_partition_size,
                                     &cpi->sf.max_partition_size);
@@ -1956,6 +1957,7 @@ static void encode_sb_row(VP9_COMP *cpi, int mi_row, TOKENEXTRA **tp,
     } else {
       // If required set upper and lower partition size limits
       if (cpi->sf.auto_min_max_partition_size) {
+        set_offsets(cpi, mi_row, mi_col, BLOCK_64X64);
         rd_auto_partition_range(cpi, &cpi->sf.min_partition_size,
                                 &cpi->sf.max_partition_size);
       }