Fix boundary checking in CU visualization.
Fix boundary checking in CU visualization.

ultravideo/kvazaar,ultravideo/kvazaar,lu-zero/kvazaar,lu-zero/kvazaar,ultravideo/kvazaar,lu-zero/kvazaar,ultravideo/kvazaar,lu-zero/kvazaar,ultravideo/kvazaar