From 112652fb0913f53a6c6fbfc2003d7857416ed7e2 Mon Sep 17 00:00:00 2001 From: Jingning Han Date: Thu, 28 Jun 2018 15:26:27 -0700 Subject: [PATCH] Skip temporal dependency build when the speed feature is off Change-Id: I888761193882cc92720e0efaea5229a04a6ed67f --- vp9/encoder/vp9_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index 472c38658..8ca4d3388 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -5897,7 +5897,7 @@ int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags, 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 -- 2.40.0