mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
Fix intra reconstruction on the bottom of the frame.
When the CU was both at the bottom of frame and at the bottom of LCU, uninitialized pixels were being used as reference.
This commit is contained in:
parent
5f79f30b8c
commit
b440c48d07
|
@ -521,7 +521,8 @@ void intra_build_reference_border(picture *pic, const pixel *src, int32_t x_luma
|
|||
// There are no coded pixels below the bottom of the LCU due to raster scan order.
|
||||
if (num_ref_pixels + y > src_height) {
|
||||
num_ref_pixels = src_height - y;
|
||||
} else if ((num_ref_pixels << is_chroma) + y_in_lcu > LCU_WIDTH) {
|
||||
}
|
||||
if ((num_ref_pixels << is_chroma) + y_in_lcu > LCU_WIDTH) {
|
||||
num_ref_pixels = (LCU_WIDTH - y_in_lcu) >> is_chroma;
|
||||
}
|
||||
// Copy pixels from coded CUs.
|
||||
|
|
Loading…
Reference in a new issue