]> granicus.if.org Git - libvpx/commitdiff
Skip temporal dependency build when the speed feature is off
authorJingning Han <jingning@google.com>
Thu, 28 Jun 2018 22:26:27 +0000 (15:26 -0700)
committerJingning Han <jingning@google.com>
Thu, 28 Jun 2018 22:26:27 +0000 (15:26 -0700)
Change-Id: I888761193882cc92720e0efaea5229a04a6ed67f

vp9/encoder/vp9_encoder.c

index 472c38658d41359552fa745cd0ef0deba80cdad0..8ca4d33883b6062a36f8d23e6ec8cf7b79284ff0 100644 (file)
@@ -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