From a348a0ec23cc94347a069cde9f2bf6e47679d949 Mon Sep 17 00:00:00 2001 From: Ari Lemmetti Date: Tue, 9 Jul 2019 19:59:55 +0300 Subject: [PATCH] Fix transform depth in early skip --- src/search_inter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search_inter.c b/src/search_inter.c index 2762e37b..5c41a1aa 100644 --- a/src/search_inter.c +++ b/src/search_inter.c @@ -1572,7 +1572,7 @@ static void search_pu_inter(encoder_state_t * const state, cur_cu->inter.mv[0][1] = info.merge_cand[merge_idx].mv[0][1]; cur_cu->inter.mv[1][0] = info.merge_cand[merge_idx].mv[1][0]; cur_cu->inter.mv[1][1] = info.merge_cand[merge_idx].mv[1][1]; - kvz_lcu_set_trdepth(lcu, x, y, depth, depth); + kvz_lcu_set_trdepth(lcu, x, y, depth, MAX(1, depth)); kvz_inter_recon_cu(state, lcu, x, y, width); kvz_quantize_lcu_residual(state, true, false, x, y, depth, cur_cu, lcu);