mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
Bugfix: calculate "final cost" only when block is inter or intra
This commit is contained in:
parent
3b59d7c3a3
commit
75dd1f48ef
|
@ -878,7 +878,9 @@ static int search_cu(encoder_control *encoder, int x, int y, int depth, lcu_t wo
|
|||
lcu_set_coeff(&work_tree[depth], x, y, depth, cur_cu);
|
||||
}
|
||||
}
|
||||
cost = lcu_get_final_cost(encoder, x, y, depth, &work_tree[depth]);
|
||||
if (cur_cu->type == CU_INTRA || cur_cu->type == CU_INTER) {
|
||||
cost = lcu_get_final_cost(encoder, x, y, depth, &work_tree[depth]);
|
||||
}
|
||||
|
||||
// Recursively split all the way to max search depth.
|
||||
if (depth < MAX_INTRA_SEARCH_DEPTH || depth < MAX_INTER_SEARCH_DEPTH) {
|
||||
|
|
Loading…
Reference in a new issue