Skip to content

Commit

Permalink
#3964 some hardware encoders can pad and round up
Browse files Browse the repository at this point in the history
vah264enc does
  • Loading branch information
totaam committed Mar 28, 2024
1 parent 4cb8613 commit 94da7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/codecs/openh264/decoder.pyx
Expand Up @@ -189,7 +189,7 @@ cdef class Decoder:
strides = [ystride, uvstride, uvstride]
cdef int width = buf_info.UsrData.sSystemBuffer.iWidth
cdef int height = buf_info.UsrData.sSystemBuffer.iHeight
if width>self.width or height>self.height:
if abs(width-self.width) > 1 or abs(height-self.height) > 1:
log.warn("Warning: image bigger than expected")
log.warn(f" {width}x{height} instead of {self.width}x{self.height}")
pixels = [
Expand Down

0 comments on commit 94da7c6

Please sign in to comment.