From 3ff8c7d9689f3fd401251d1125475c91e89d78e7 Mon Sep 17 00:00:00 2001 From: Adrian Grange Date: Tue, 31 Jan 2012 12:58:34 -0800 Subject: [PATCH] Correctly capped minqtarget to maxq This line of code incorrectly set maxq = maxq rather than capping minqtarget. Change-Id: Ifbc86df8b0ff2779e7b2a5f7349724d04a18bd62 --- vp8/encoder/onyx_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++ ) { -- 2.40.0