From 37caa451c6620ea3f1e769ca9483e20f0afaadc2 Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Tue, 28 Aug 2018 16:03:02 +0300 Subject: [PATCH] Fix VVC split flag condition for hor and ver splits at the edges - Split flag is no longer implicit when the block can be split with the BT after QT in horizontal or vertical way --- src/encode_coding_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encode_coding_tree.c b/src/encode_coding_tree.c index 5c1c169e..e941effe 100644 --- a/src/encode_coding_tree.c +++ b/src/encode_coding_tree.c @@ -1005,7 +1005,7 @@ void kvz_encode_coding_tree(encoder_state_t * const state, // When not in MAX_DEPTH, insert split flag and split the blocks if needed if (depth != MAX_DEPTH) { // Implisit split flag when on border - if (!border) { + if (!border || (depth >= 1 && (border_x != border_y)) ) { // Get left and top block split_flags and if they are present and true, increase model number if (left_cu && GET_SPLITDATA(left_cu, depth) == 1) { split_model++;