Skip to content

Commit f324274

Browse files
DexerBRWyattBlue
authored andcommitted
fix missing staticmethod in VideoFrame.from_bytes
1 parent 256f1ba commit f324274

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

av/video/frame.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ cdef class VideoFrame(Frame):
591591

592592
return frame
593593

594+
@staticmethod
594595
def from_bytes(img_bytes: bytes, width: int, height: int, format="rgba", flip_horizontal=False, flip_vertical=False):
595596
frame = VideoFrame(width, height, format)
596597
if format == "rgba":

0 commit comments

Comments
 (0)