Skip to content

Commit

Permalink
#1108: the picture size validation is mandatory as the RPM build test…
Browse files Browse the repository at this point in the history
…s will fail without it

git-svn-id: https://xpra.org/svn/Xpra/trunk@11819 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 2, 2016
1 parent ffad582 commit ac4bd36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/codecs/csc_opencv/colorspace_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ac4bd36

Please sign in to comment.