Fix boundary checking in CU visualization.

This commit is contained in:
Ari Koivula 2013-10-02 11:11:21 +03:00
parent 665b369164
commit c753f6bac6

View file

@ -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;
}