From 85be89a85c2b6933bc523d864f587546776f9ad3 Mon Sep 17 00:00:00 2001 From: Jaakko Laitinen Date: Mon, 28 Dec 2020 15:20:30 +0200 Subject: [PATCH] Fix compilation errors --- src/filter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/filter.c b/src/filter.c index eec52ed1..d34515c5 100644 --- a/src/filter.c +++ b/src/filter.c @@ -996,11 +996,12 @@ static void filter_deblock_edge_chroma(encoder_state_t * const state, : PU_GET_W(cu_q->part_size, cu_size, pu_part_idx); const int pu_pos = dir == EDGE_HOR ? y_coord - PU_GET_Y(cu_q->part_size, cu_size, 0, pu_part_idx) : x_coord - PU_GET_X(cu_q->part_size, cu_size, 0, pu_part_idx); + uint8_t max_filter_length_P = 0; + uint8_t max_filter_length_Q = 0; get_max_filter_length(&max_filter_length_P, &max_filter_length_Q, state, x_coord, y_coord, dir, tu_boundary, LCU_WIDTH >> cu_p->tr_depth, LCU_WIDTH >> cu_q->tr_depth, pu_pos, pu_size, COLOR_Y); - uint8_t max_filter_length_P = 0; - uint8_t max_filter_length_Q = 0; + const bool large_boundary = (max_filter_length_P >= 3 && max_filter_length_Q >= 3); const bool is_chroma_hor_CTB_boundary = (dir == EDGE_HOR && (y + 4 * blk_idx) << 1 % LCU_WIDTH == 0);