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
This commit is contained in:
Paul Wilkins 2011-01-19 15:50:22 +00:00
parent f97f2b1bb6
commit e867516843

View 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) &&