[dual-tree] Small fixes

This commit is contained in:
Joose Sainio 2023-02-23 12:50:30 +02:00 committed by Marko Viitanen
parent 91591c7e7c
commit 707e11dbcf
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -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) {