shithub: libvpx

Download patch

ref: 9f493870d0b399822edff4c6eb1d33514c4f5ea8
parent: bb582b50fcf20e923f260fb1e952f0f7e1d5ebb2
parent: 1f46c31844b9162557e12de73352075f6b8d9379
author: Paul Wilkins <paulwilkins@google.com>
date: Thu Sep 6 10:24:05 EDT 2018

Merge "Fix short first kf bug."

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -3074,11 +3074,7 @@
   rc->gfu_boost = VPXMIN((int)rc->gfu_boost, i * 200);
 #endif
 
-  rc->baseline_gf_interval =
-      ((twopass->kf_zeromotion_pct >= STATIC_KF_GROUP_THRESH) &&
-       (i >= rc->frames_to_key))
-          ? i
-          : (i - (is_key_frame || rc->source_alt_ref_pending));
+  rc->baseline_gf_interval = i - rc->source_alt_ref_pending;
 
   // TODO(zoeliu): Turn on the option to disable extra ALTREFs for still GF
   //               groups.