mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
Another fix for reference building.
This commit is contained in:
parent
b0a4f3345a
commit
eb32f40bd9
|
@ -713,11 +713,16 @@ void kvz_intra_build_reference_any(
|
|||
if (px.x == 0) {
|
||||
// On left border, no need for multi ref index
|
||||
out_left_ref[0] = out_left_ref[1];
|
||||
if (px.y == 0) {
|
||||
out_top_ref[0] = out_left_ref[1];
|
||||
}
|
||||
else {
|
||||
// Fill top reference top left pixels with nearest
|
||||
kvz_pixel nearest = top_border[0];
|
||||
for (int i = 0; i <= multi_ref_index; ++i) {
|
||||
out_top_ref[i] = nearest;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Copy reference clockwise.
|
||||
out_left_ref[0] = out_left_ref[1];
|
||||
|
|
Loading…
Reference in a new issue