shithub: libvpx

Download patch

ref: 8534071de0fe346a7ae59db184d7cfbea34494da
parent: ccb0348473baf63afa6e7c220c8e313bf7603d71
author: Patrik Westin <patrik.westin@gmail.com>
date: Tue Nov 16 06:06:00 EST 2010

Fix for manual Golden frame frequency

When auto_golden wasn't set it forced all frames to be a golden
frame. Now the manual configured frequency is adhered to.

Change-Id: I360acac9bc487db0d9c4d4da6ee41f70c227c539

--- a/vp8/encoder/ratectrl.c
+++ b/vp8/encoder/ratectrl.c
@@ -1037,9 +1037,7 @@
             gf_frame_useage = pct_gf_active;
 
         // Is a fixed manual GF frequency being used
-        if (!cpi->auto_gold)
-            cpi->common.refresh_golden_frame = TRUE;
-        else
+        if (cpi->auto_gold)
         {
             // For one pass throw a GF if recent frame intra useage is low or the GF useage is high
             if ((cpi->pass == 0) && (cpi->this_frame_percent_intra < 15 || gf_frame_useage >= 5))
--