shithub: libvpx

Download patch

ref: 6d843227626a9e3775b4309100532d586356cd43
parent: ce328b855f951e5a9fd0d9d92df09d65ea0d8be9
author: Paul Wilkins <paulwilkins@google.com>
date: Wed Feb 29 07:32:46 EST 2012

vp8e - force at least some change in over and under shoots

Change-Id: Ie1796f272dc33bf5a1c8ac990da625961d272aa9

--- a/vp8/encoder/ratectrl.c
+++ b/vp8/encoder/ratectrl.c
@@ -1532,6 +1532,15 @@
                 }
             }
         }
+
+        // For very small rate targets where the fractional adjustment
+        // (eg * 7/8) may be tiny make sure there is at least a minimum
+        // range.
+        *frame_over_shoot_limit += 200;
+        *frame_under_shoot_limit -= 200;
+        if ( *frame_under_shoot_limit < 0 )
+            *frame_under_shoot_limit = 0;
+
     }
 }
 
--