From: Adrian Grange Date: Tue, 31 Jan 2012 20:58:34 +0000 (-0800) Subject: Correctly capped minqtarget to maxq X-Git-Tag: v1.3.0~1217^2~380^2~84 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ff8c7d9689f3fd401251d1125475c91e89d78e7;p=libvpx Correctly capped minqtarget to maxq This line of code incorrectly set maxq = maxq rather than capping minqtarget. Change-Id: Ifbc86df8b0ff2779e7b2a5f7349724d04a18bd62 --- diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index 729908629..309689d1b 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c @@ -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++ ) {