Fix in first pass partition search

Fix to enable first pass partition search for complete superblocks in frame boundary.

For speed 1 and 2 presets, BD-rate drop is seen by 0.0226% and 0.0163% (as per AWCY runs)
with encode time reduction of 1.2% and 2% (averaged across multiple test cases) respectively.

STATS_CHANGED

Change-Id: I8ff10df159becf4ab1a32b1cdb01e9176dfe3d60
diff --git a/av1/encoder/encodeframe.c b/av1/encoder/encodeframe.c
index 5ff55a2..26cffbf 100644
--- a/av1/encoder/encodeframe.c
+++ b/av1/encoder/encodeframe.c
@@ -4825,8 +4825,8 @@
       // Do the first pass if we need two pass partition search
       if (cpi->two_pass_partition_search &&
           cpi->sf.use_square_partition_only_threshold > BLOCK_4X4 &&
-          mi_row + mi_size_high[sb_size] < cm->mi_rows &&
-          mi_col + mi_size_wide[sb_size] < cm->mi_cols &&
+          mi_row + mi_size_high[sb_size] <= cm->mi_rows &&
+          mi_col + mi_size_wide[sb_size] <= cm->mi_cols &&
           cm->current_frame.frame_type != KEY_FRAME) {
         first_partition_search_pass(cpi, td, tile_data, mi_row, mi_col, tp);
       }