ref: 112652fb0913f53a6c6fbfc2003d7857416ed7e2
parent: 4a42d0918e199233723195ea0c9561a2343df1bd
author: Jingning Han <jingning@google.com>
date: Thu Jun 28 11:26:27 EDT 2018
Skip temporal dependency build when the speed feature is off Change-Id: I888761193882cc92720e0efaea5229a04a6ed67f
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -5897,7 +5897,7 @@
for (i = 0; i < MAX_REF_FRAMES; ++i) cpi->scaled_ref_idx[i] = INVALID_IDX;
}
- if (arf_src_index) setup_tpl_stats(cpi);
+ if (arf_src_index && cpi->sf.enable_tpl_model) setup_tpl_stats(cpi);
cpi->td.mb.fp_src_pred = 0;
#if CONFIG_REALTIME_ONLY