Commit fb37eda3 authored by John Koleszar's avatar John Koleszar Committed by Code Review
Browse files

Merge "Fix drastic undershoot in long form content"

parents 05d75b43 36be4f7f
...@@ -2494,7 +2494,7 @@ void vp8_find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame) ...@@ -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. // 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) // Max for a single normal frame (not key frame)
int max_bits = frame_max_bits(cpi); int max_bits = frame_max_bits(cpi);
......
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