Skip to content

Commit

Permalink
Fix format.planesize() call for latest pixutils
Browse files Browse the repository at this point in the history
  • Loading branch information
tomba committed Nov 25, 2024
1 parent faa6bbe commit 8edfc8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v4l2/videodev.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def __init__(self, vdev: VideoDevice, mem_type: v4l2.MemType, buf_type: v4l2.Buf

self.__format = format
self.__strides = [format.stride(width, i) for i in range(len(format.planes))]
self.__buffersizes = [format.planesize(width, height, i) for i in range(len(format.planes))]
self.__buffersizes = [format.planesize(self.__strides[i], height, i) for i in range(len(format.planes))]
self.__framesize = format.framesize(width, height)

@property
Expand Down

0 comments on commit 8edfc8c

Please sign in to comment.