From e867516843c18a0493039eccc940bd9ab706b13f Mon Sep 17 00:00:00 2001 From: Paul Wilkins Date: Wed, 19 Jan 2011 15:50:22 +0000 Subject: [PATCH] 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 --- vp8/encoder/firstpass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp8/encoder/firstpass.c b/vp8/encoder/firstpass.c index 32a39c5f2..e5a22d957 100644 --- a/vp8/encoder/firstpass.c +++ b/vp8/encoder/firstpass.c @@ -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) && -- 2.40.0