shithub: libvpx

Download patch

ref: fbac7790a65595fe0582c4283c2389a0d1d2b7bd
parent: f8ce04c93f7c12e49efc89f9967e289e23ebf918
parent: d0f7f002b13081ed016033741a021987f70ac568
author: Jingning Han <jingning@google.com>
date: Thu Oct 11 12:22:01 EDT 2018

Merge "Call tpl model build at the beginning of a GOP"

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -6347,7 +6347,7 @@
     for (i = 0; i < MAX_REF_FRAMES; ++i) cpi->scaled_ref_idx[i] = INVALID_IDX;
   }
 
-  if (arf_src_index && cpi->sf.enable_tpl_model) {
+  if (cpi->twopass.gf_group.index == 1 && cpi->sf.enable_tpl_model) {
     vp9_estimate_qp_gop(cpi);
     setup_tpl_stats(cpi);
   }