ref: 57d59f6ee78314c661ae1d21278c83ab7e178741
parent: 4071d167d6400bebd98edd497eb51c90bf85b5f6
parent: ea4b6f18cb10082aeea6be256de673848eb85fa1
author: Paul Wilkins <paulwilkins@google.com>
date: Wed May 26 05:06:49 EDT 2010
Merge "Correct bit allocation when the alternative reference frame"
--- a/vp8/encoder/ratectrl.c
+++ b/vp8/encoder/ratectrl.c
@@ -1118,8 +1118,9 @@
cpi->this_frame_target = (baseline_bits_at_q(1, Q, cpi->common.MBs) * cpi->last_boost) / 100;
}
- // If there is an active ARF at this location use the minimum bits on this frame
- else
+ // If there is an active ARF at this location use the minimum
+ // bits on this frame unless it was a contructed arf.
+ else if (cpi->oxcf.arnr_max_frames == 0)
{
cpi->this_frame_target = 0; // Minimial spend on gf that is replacing an arf
}