]> granicus.if.org Git - libvpx/commitdiff
Correctly capped minqtarget to maxq
authorAdrian Grange <agrange@google.com>
Tue, 31 Jan 2012 20:58:34 +0000 (12:58 -0800)
committerAdrian Grange <agrange@google.com>
Tue, 31 Jan 2012 20:58:34 +0000 (12:58 -0800)
This line of code incorrectly set maxq = maxq rather than
capping minqtarget.

Change-Id: Ifbc86df8b0ff2779e7b2a5f7349724d04a18bd62

vp8/encoder/onyx_if.c

index 7299086291b2c8845095eea184d329bebdf75655..309689d1b512cfd13e9f4f69e568bbe51d0d5b94 100644 (file)
@@ -187,7 +187,7 @@ int calculate_minq_index( double maxq,
                    c );
 
     if ( minqtarget > maxq )
-        maxq = maxq;
+        minqtarget = maxq;
 
     for ( i = 0; i < QINDEX_RANGE; i++ )
     {