shithub: libvpx

Download patch

ref: eb645abeacc1cc3d8834aa09d969fd7bc6a06c83
parent: d9959e336eba090ab59f624f4223acecf5e02d39
parent: 299193dd1c20a27059de9fdac62a635e6dfffe66
author: John Koleszar <jkoleszar@google.com>
date: Thu Jun 16 05:56:05 EDT 2011

Merge "Disable specialcase for last frames if the sequence contains ARFs."

--- a/vp8/encoder/firstpass.c
+++ b/vp8/encoder/firstpass.c
@@ -1897,12 +1897,6 @@
 
     int max_bits = frame_max_bits(cpi);    // Max for a single frame
 
-    // The final few frames have special treatment
-    if (cpi->frames_till_gf_update_due >= (int)(cpi->twopass.total_stats->count - cpi->common.current_video_frame))
-    {
-        cpi->twopass.gf_group_bits = (cpi->twopass.bits_left > 0) ? cpi->twopass.bits_left : 0;;
-    }
-
     // Calculate modified prediction error used in bit allocation
     modified_err = calculate_modified_err(cpi, this_frame);
 
--