shithub: libvpx

Download patch

ref: 040395b9442dc480b1f53d2612765648e57914af
parent: 3f7656cc23dfce0d6a9849a0460626258579f647
parent: ece841f03f1440d0b1b0f839a8730888bb2ad577
author: Marco Paniconi <marpan@google.com>
date: Fri Sep 25 14:59:58 EDT 2015

Merge "VP8: Adjust rate correction factor for drop due to overshoot."

--- a/vp8/encoder/ratectrl.c
+++ b/vp8/encoder/ratectrl.c
@@ -1596,6 +1596,10 @@
       // Drop this frame: advance frame counters, and set force_maxqp flag.
       cpi->common.current_video_frame++;
       cpi->frames_since_key++;
+      // Adjust rate correction factor upwards.
+      cpi->rate_correction_factor *= 2.0;
+      if (cpi->rate_correction_factor > MAX_BPB_FACTOR)
+        cpi->rate_correction_factor = MAX_BPB_FACTOR;
       // Flag to indicate we will force next frame to be encoded at max QP.
       cpi->force_maxqp = 1;
       return 1;