mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Fix boundary checking in CU visualization.
This commit is contained in:
parent
665b369164
commit
c753f6bac6
|
@ -65,7 +65,7 @@ unsigned render_cu_file(encoder_control *encoder, picture *pic,
|
|||
unsigned char yuv[3] = { 0, 0, 0 };
|
||||
unsigned char rgb[3] = { 0, 0, 0 };
|
||||
|
||||
if (x > pic->width || y > pic->width) {
|
||||
if (x >= pic->width || y >= pic->height) {
|
||||
// Don't output anything for CU's completely outside the botders.
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue