mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
[lfnst] Also chroma can only use lfnst if dimensions are minimum 4
This commit is contained in:
parent
e941ed5fa4
commit
17540abb76
|
@ -1445,7 +1445,7 @@ int8_t uvg_search_intra_chroma_rdo(
|
|||
const int offset = ((cu_loc->local_x) >> 1) + ((cu_loc->local_y) >> 1)* LCU_WIDTH_C;
|
||||
|
||||
int lfnst_modes_to_check[3];
|
||||
if((is_separate || tree_type == UVG_CHROMA_T) && state->encoder_control->cfg.lfnst && PU_IS_TU(&chroma_data->pred_cu) ) {
|
||||
if((is_separate || tree_type == UVG_CHROMA_T) && state->encoder_control->cfg.lfnst && PU_IS_TU(&chroma_data->pred_cu) && chroma_height >= 4 && chroma_width >= 4) {
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
lfnst_modes_to_check[i] = i;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue