shithub: libvpx

Download patch

ref: 3ff8c7d9689f3fd401251d1125475c91e89d78e7
parent: b72ab88d75868c2ff7aaf1c32cabb88f55e73a64
author: Adrian Grange <agrange@google.com>
date: Tue Jan 31 07:58:34 EST 2012

Correctly capped minqtarget to maxq

This line of code incorrectly set maxq = maxq rather than
capping minqtarget.

Change-Id: Ifbc86df8b0ff2779e7b2a5f7349724d04a18bd62

--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -187,7 +187,7 @@
                    c );
 
     if ( minqtarget > maxq )
-        maxq = maxq;
+        minqtarget = maxq;
 
     for ( i = 0; i < QINDEX_RANGE; i++ )
     {