[cclm] fix trying cclm on the upper level

This commit is contained in:
Joose Sainio 2021-11-18 07:13:16 +02:00
parent c16ce9a82b
commit d9875a3d92

View file

@ -917,7 +917,14 @@ static void intra_recon_tb_leaf(
} }
y_rec += LCU_WIDTH; y_rec += LCU_WIDTH;
} }
linear_transform_cclm(&cclm_params[color == COLOR_U ? 0 : 1], pred, pred, width, width); if(cclm_params == NULL) {
cclm_parameters_t temp_params;
kvz_predict_cclm(
state, color, width, width, x, y, stride, intra_mode, lcu->rec.y, &refs, pred, &temp_params);
}
else {
linear_transform_cclm(&cclm_params[color == COLOR_U ? 0 : 1], pred, pred, width, width);
}
} }
const int index = lcu_px.x + lcu_px.y * lcu_width; const int index = lcu_px.x + lcu_px.y * lcu_width;