From 30f86403803e442c517b2133204b8fd3d24ca676 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Wed, 3 Jun 2015 15:04:40 +0300 Subject: [PATCH] Disable trskip SAD calcultation when trskip is not enabled. --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index fdad26f0..07944e99 100644 --- a/src/search.c +++ b/src/search.c @@ -1891,7 +1891,7 @@ static double get_cost(encoder_state_t * const state, int width) { double satd_cost = satd_func(pred, orig_block); - if (TRSKIP_RATIO != 0 && width == 4) { + if (TRSKIP_RATIO != 0 && width == 4 && state->encoder_control->trskip_enable) { // If the mode looks better with SAD than SATD it might be a good // candidate for transform skip. How much better SAD has to be is // controlled by TRSKIP_RATIO.