shithub: libvpx

Download patch

ref: fb37eda3e27a8a1e6d3488ff86665f999c6b4ccb
parent: 05d75b4353cb631c4e861e00db20813ed05a779d
parent: 36be4f7f06906dec1d7c66166bcb290b3105bed2
author: John Koleszar <jkoleszar@google.com>
date: Fri Mar 4 00:39:40 EST 2011

Merge "Fix drastic undershoot in long form content"

--- a/vp8/encoder/firstpass.c
+++ b/vp8/encoder/firstpass.c
@@ -2494,7 +2494,7 @@
     }
 
     // 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);