]> granicus.if.org Git - libvpx/commitdiff
Fix an encoding failure case when speed features are on
authorJingning Han <jingning@google.com>
Wed, 11 Nov 2015 00:02:33 +0000 (16:02 -0800)
committerJingning Han <jingning@google.com>
Wed, 11 Nov 2015 00:04:00 +0000 (16:04 -0800)
This commit fixes an encoding failure case triggered when early
termination feature is turned on for transform block size search.
It resolves the corresponding enc/dec mismatch issue.

Change-Id: I2c5b7d8b1efe25fe3810e6ed307f4b1865dede49

vp10/encoder/rdopt.c

index adcd5473a369efa316126d79bee01e8ab7e6aa51..dc56563583f32b998451de2955eb29194120f369 100644 (file)
@@ -912,9 +912,9 @@ static void choose_tx_size_from_rd(VP10_COMP *cpi, MACROBLOCK *x,
       if (cpi->sf.tx_size_search_breakout &&
           (rd == INT64_MAX ||
 #if CONFIG_EXT_TX
-           (s == 1 && tx_type != DCT_DCT) ||
+           (s == 1 && tx_type != DCT_DCT && n < start_tx) ||
 #else
-           (s == 1) ||
+           (s == 1 && n < start_tx) ||
 #endif
            (n < (int) max_tx_size && rd > last_rd)))
         break;