Skip operations that exercise the tpl model values if the model
is turned off.
Change-Id: I9ab3b56950f6b5a40ae4670a570885aaaadf8382
if (sf->partition_search_type == SOURCE_VAR_BASED_PARTITION)
source_var_based_partition_search_method(cpi);
- } else if (cpi->twopass.gf_group.index) {
+ } else if (cpi->twopass.gf_group.index && cpi->sf.enable_tpl_model) {
TplDepFrame *tpl_frame = &cpi->tpl_stats[cpi->twopass.gf_group.index];
TplDepStats *tpl_stats = tpl_frame->tpl_stats_ptr;