[mtt] Fix ref pixel generation for the second half of 32x2 chroma cus

This commit is contained in:
Joose Sainio 2022-12-19 09:35:32 +02:00
parent c431529c0e
commit 47b6754113

View file

@ -1492,7 +1492,7 @@ void uvg_intra_build_reference_inner(
int i = multi_ref_index; // Offset by multi_ref_index int i = multi_ref_index; // Offset by multi_ref_index
// Do different loop for heights smaller than 4 (possible for some ISP splits) // Do different loop for heights smaller than 4 (possible for some ISP splits)
if (px.y % 4 != 0) { if (px.y % 4 != 0 || px_available_left < 4) {
do { do {
out_left_ref[i + 1] = left_border[(i + 0 - multi_ref_index) * left_stride]; out_left_ref[i + 1] = left_border[(i + 0 - multi_ref_index) * left_stride];
i += 1; i += 1;