]> granicus.if.org Git - libvpx/commitdiff
First pass loop bug.
authorPaul Wilkins <paulwilkins@google.com>
Wed, 19 Jan 2011 15:50:22 +0000 (15:50 +0000)
committerPaul Wilkins <paulwilkins@google.com>
Wed, 19 Jan 2011 15:50:22 +0000 (15:50 +0000)
Incorrect value loop_decay_rate used in GF loop.

The intent was to test the  cumulative value decay_accumulator.

Change-Id: I62928c63eb09f4f6936a45ebd1c23784d1c9681b

vp8/encoder/firstpass.c

index 32a39c5f27852e6190f89cbe53dd8dafa0b53a70..e5a22d957d9edddb7b033d61e1031ff483e8c6b5 100644 (file)
@@ -1487,7 +1487,7 @@ static void define_gf_group(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame)
         // 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) &&