shithub: libvpx

Download patch

ref: 388755f99fe2a98b03951b2bf571388ee0c64b6f
parent: 03abd2c8f358549a445dce452e26aa72d3853e55
parent: 9697a658048763439981406ab0f82e023483e3e2
author: Jingning Han <[email protected]>
date: Mon Jul 2 19:57:25 EDT 2018

Merge "Add enable-tpl-model guard"

--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -5438,7 +5438,7 @@
 
     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;