Skip to content

Commit 7bc90f8

Browse files
committed
fix incorrect video frames stride
1 parent 3fc2c72 commit 7bc90f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

livekit/video_frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def to_argb(self, dst: 'ArgbFrame'):
5353
req.to_argb.buffer.id = self._ffi_handle.handle
5454
req.to_argb.dst_ptr = ctypes.addressof(dst.data)
5555
req.to_argb.dst_format = dst.format
56-
req.to_argb.dst_stride = dst.width
56+
req.to_argb.dst_stride = dst.width * 4
5757
req.to_argb.dst_width = dst.width
5858
req.to_argb.dst_height = dst.height
5959

0 commit comments

Comments
 (0)