summaryrefslogtreecommitdiff
path: root/vp8
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2011-03-04 05:39:40 -0800
committerCode Review <code-review@webmproject.org>2011-03-04 05:39:40 -0800
commitfb37eda3e27a8a1e6d3488ff86665f999c6b4ccb (patch)
tree33fad2fb4e076cba774dc2fc3576f91b40b6b6f9 /vp8
parent05d75b4353cb631c4e861e00db20813ed05a779d (diff)
parent36be4f7f06906dec1d7c66166bcb290b3105bed2 (diff)
downloadlibvpx-fb37eda3e27a8a1e6d3488ff86665f999c6b4ccb.tar
libvpx-fb37eda3e27a8a1e6d3488ff86665f999c6b4ccb.tar.gz
libvpx-fb37eda3e27a8a1e6d3488ff86665f999c6b4ccb.tar.bz2
libvpx-fb37eda3e27a8a1e6d3488ff86665f999c6b4ccb.zip
Merge "Fix drastic undershoot in long form content"
Diffstat (limited to 'vp8')
-rw-r--r--vp8/encoder/firstpass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/encoder/firstpass.c b/vp8/encoder/firstpass.c
index 964e68ab0..e0b2a8a45 100644
--- a/vp8/encoder/firstpass.c
+++ b/vp8/encoder/firstpass.c
@@ -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);