Fix for manual Golden frame frequency
authorPatrik Westin <patrik.westin@gmail.com>
Tue, 16 Nov 2010 10:06:00 +0000 (11:06 +0100)
committerJohn Koleszar <jkoleszar@google.com>
Mon, 6 Dec 2010 14:53:41 +0000 (09:53 -0500)
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

vp8/encoder/ratectrl.c

index a7d8f48..8455b7b 100644 (file)
@@ -1037,9 +1037,7 @@ void vp8_calc_pframe_target_size(VP8_COMP *cpi)
             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))