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
13
src/intra.c
13
src/intra.c
|
@ -713,10 +713,15 @@ 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];
|
||||
// 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;
|
||||
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.
|
||||
|
|
Loading…
Reference in a new issue