Initialize min_tx_size in var-tx

Avoid the risk of use uninitialized value when TX_2X2 is moved
behind chroma-2x2 flag.

Change-Id: Ibb3e3700ab82d7f98ebe58fae70afbf64f5773c7
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index 13cfaa2..6fc0ae4 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -4246,8 +4246,8 @@
   const int max_blocks_wide = max_block_wide(xd, bsize, 0);
 
   mbmi->tx_type = tx_type;
-  mbmi->min_tx_size = TX_SIZES_ALL;
   inter_block_yrd(cpi, x, rd_stats, bsize, ref_best_rd, rd_stats_stack);
+  mbmi->min_tx_size = mbmi->inter_tx_size[0][0];
 
   if (rd_stats->rate == INT_MAX) return INT64_MAX;