Commit 923377b8 authored by Jingning Han's avatar Jingning Han

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
parent 17f041a7
......@@ -4246,8 +4246,8 @@ static int64_t select_tx_size_fix_type(const AV1_COMP *cpi, MACROBLOCK *x,
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;
......
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