Merge "Fix drastic undershoot in long form content"

This commit is contained in:
John Koleszar 2011-03-04 05:39:40 -08:00 committed by Code Review
commit fb37eda3e2

View File

@ -2494,7 +2494,7 @@ void vp8_find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame)
}
// Calculate the number of bits that should be assigned to the kf group.
if ((cpi->bits_left > 0) && ((int)cpi->modified_error_left > 0))
if ((cpi->bits_left > 0) && (cpi->modified_error_left > 0.0))
{
// Max for a single normal frame (not key frame)
int max_bits = frame_max_bits(cpi);