vp9: Fix condition for limiting ARF 1 pass vbr.
authorMarco <marpan@google.com>
Tue, 19 Sep 2017 18:00:40 +0000 (11:00 -0700)
committerMarco <marpan@google.com>
Tue, 19 Sep 2017 18:12:37 +0000 (11:12 -0700)
Fix the setting to frames_till_gf_update_due, and
adjust the limit value.
Only affects when USE_ALTREF_FOR_ONE_PASS is enabled.

Neutral change to metrics and speed for ytlive.

Change-Id: I266d9a00b36221bc8602fa2746d4e8a8f7d4dfae

vp9/encoder/vp9_ratectrl.c

index 93de41e..073c76a 100644 (file)
@@ -2220,9 +2220,10 @@ static void adjust_gf_boost_lag_one_pass_vbr(VP9_COMP *cpi,
         rc->source_alt_ref_pending = 1;
         rc->alt_ref_gf_group = 1;
         // If alt-ref is used for this gf group, limit the interval.
-        if (rc->baseline_gf_interval > 10 &&
-            rc->baseline_gf_interval < rc->frames_to_key)
-          rc->baseline_gf_interval = 10;
+        if (rc->baseline_gf_interval > 12) {
+          rc->baseline_gf_interval = 12;
+          rc->frames_till_gf_update_due = rc->baseline_gf_interval;
+        }
       }
     }
 #endif