Skip to content

Commit

Permalink
validate colorspace
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 1, 2024
1 parent a74a949 commit 0be7fae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xpra/codecs/openh264/decoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ cdef class Decoder:

def init_context(self, encoding, int width, int height, colorspace):
log("openh264.init_context%s", (encoding, width, height, colorspace))
assert encoding=="h264", f"invalid encoding: {encoding}"
assert encoding == "h264", f"invalid encoding: {encoding}"
assert colorspace == "YUV420P", f"invalid colorspace: {colorspace}"
self.width = width
self.height = height
self.colorspace = colorspace
Expand Down

0 comments on commit 0be7fae

Please sign in to comment.