Skip to content

Commit

Permalink
only negative values are errors
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Mar 14, 2023
1 parent 7c742de commit 1dfdbc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/codecs/enc_ffmpeg/encoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@ cdef class Encoder:
assert len(istrides)==self.nplanes, "image strides does not have %i values! (found %s)" % (self.nplanes, len(istrides))
#populate the avframe:
ret = av_frame_make_writable(self.av_frame)
if not ret!=0:
if ret<0:
raise Exception(av_error_str(ret))
for i in range(4):
if i<self.nplanes:
Expand Down

0 comments on commit 1dfdbc3

Please sign in to comment.