Commit e8675168 authored by Paul Wilkins's avatar Paul Wilkins
Browse files

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
parent f97f2b1b
...@@ -1487,7 +1487,7 @@ static void define_gf_group(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame) ...@@ -1487,7 +1487,7 @@ static void define_gf_group(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame)
// Break out conditions. // Break out conditions.
if ( /* i>4 || */ if ( /* i>4 || */
// Break at cpi->max_gf_interval unless almost totally static // 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 // Dont break out with a very short interval
(i > MIN_GF_INTERVAL) && (i > MIN_GF_INTERVAL) &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment