diff --git a/src/encode_coding_tree.c b/src/encode_coding_tree.c index 1d121d18..6cf99a61 100644 --- a/src/encode_coding_tree.c +++ b/src/encode_coding_tree.c @@ -1668,7 +1668,7 @@ void uvg_encode_coding_tree( exit(1); } if (state->encoder_control->cabac_debug_file) { - fprintf(state->encoder_control->cabac_debug_file, "E %4d %4d %9d %d", x << (tree_type == UVG_CHROMA_T), y << (tree_type == UVG_CHROMA_T), split_tree.split_tree, tree_type); + fprintf(state->encoder_control->cabac_debug_file, "E %4d %4d %9d %d", x, y, split_tree.split_tree, tree_type); fwrite(&cabac->ctx, 1, sizeof(cabac->ctx), state->encoder_control->cabac_debug_file); } diff --git a/src/search.c b/src/search.c index 36b317ac..17aaaf8f 100644 --- a/src/search.c +++ b/src/search.c @@ -2179,7 +2179,7 @@ void uvg_search_lcu(encoder_state_t * const state, const int x, const int y, con &work_tree, tree_type, split_tree, - true); + tree_type == UVG_BOTH_T); // Save squared cost for rate control. if(state->encoder_control->cfg.rc_algorithm == UVG_LAMBDA) {