shithub: libvpx

Download patch

ref: 1842f17e78291142930e0cde00e1956e69163654
parent: 5dab9c6ce9096a1686659bc6e6d0a52294cd2af1
parent: 7409225a3cd465142bd20cec313270c0ecd0589b
author: Paul Wilkins <paulwilkins@google.com>
date: Mon Jul 23 09:50:51 EDT 2018

Merge "Fix issue with short static KF groups."

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2917,6 +2917,7 @@
 
   // Should we use the alternate reference frame.
   if ((zero_motion_accumulator < 0.995) && allow_alt_ref &&
+      (twopass->kf_zeromotion_pct < STATIC_KF_GROUP_THRESH) &&
       (i < cpi->oxcf.lag_in_frames) && (i >= rc->min_gf_interval)) {
     const int forward_frames = (rc->frames_to_key - i >= i - 1)
                                    ? i - 1