shithub: libvpx

Download patch

ref: e867516843c18a0493039eccc940bd9ab706b13f
parent: f97f2b1bb6c08661b88324ef15354505dad4a041
author: Paul Wilkins <paulwilkins@google.com>
date: Wed Jan 19 10:50:22 EST 2011

First pass loop bug.

Incorrect value loop_decay_rate used in GF loop.

The intent was to test the  cumulative value decay_accumulator.

Change-Id: I62928c63eb09f4f6936a45ebd1c23784d1c9681b

--- a/vp8/encoder/firstpass.c
+++ b/vp8/encoder/firstpass.c
@@ -1487,7 +1487,7 @@
         // Break out conditions.
         if  (   /* i>4 || */
             // Break at cpi->max_gf_interval unless almost totally static
-            (i >= cpi->max_gf_interval && (loop_decay_rate < 0.99)) ||
+            (i >= cpi->max_gf_interval && (decay_accumulator < 0.99)) ||
             (
                 // Dont break out with a very short interval
                 (i > MIN_GF_INTERVAL) &&
--