shithub: libvpx

Download patch

ref: 91b5c98b3d1034b92cace7e1bbb88ce698d2384e
parent: c34d91a84eaca1df605e92f1854677cac5b6a3f5
parent: 6d843227626a9e3775b4309100532d586356cd43
author: Jim Bankoski <jimbankoski@google.com>
date: Thu Mar 1 06:22:52 EST 2012

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

--- 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;
+
     }
 }
 
--