From: Jingning Han Date: Thu, 28 Jun 2018 22:26:27 +0000 (-0700) Subject: Skip temporal dependency build when the speed feature is off X-Git-Tag: v1.8.0~564^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=112652fb0913f53a6c6fbfc2003d7857416ed7e2;p=libvpx Skip temporal dependency build when the speed feature is off Change-Id: I888761193882cc92720e0efaea5229a04a6ed67f --- 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