diff --git a/src/xpra/codecs/csc_opencv/colorspace_converter.py b/src/xpra/codecs/csc_opencv/colorspace_converter.py index fd8e5e6445..6e3cab9a4e 100644 --- a/src/xpra/codecs/csc_opencv/colorspace_converter.py +++ b/src/xpra/codecs/csc_opencv/colorspace_converter.py @@ -151,8 +151,8 @@ def convert_image(self, image): iplanes = image.get_planes() w = image.get_width() h = image.get_height() - #assert w>=self.width, "invalid image width: %s (minimum is %s)" % (w, self.width) - #assert h>=self.height, "invalid image height: %s (minimum is %s)" % (h, self.height) + assert w>=self.width, "invalid image width: %s (minimum is %s)" % (w, self.width) + assert h>=self.height, "invalid image height: %s (minimum is %s)" % (h, self.height) pixels = image.get_pixels() assert pixels, "failed to get pixels from %s" % image input_stride = image.get_rowstride()