Skip to content

Commit

Permalink
request buffer length = VIDEO_MAX_PLANES for multi-planar devices
Browse files Browse the repository at this point in the history
  • Loading branch information
argakon committed Oct 8, 2023
1 parent fc2fea9 commit 52a7771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ustreamer/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ int us_device_grab_buffer(us_device_s *dev, us_hw_buffer_s **hw) {
new.type = dev->capture_type;
new.memory = dev->io_method;
if (dev->capture_type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
new.length = 1;
new.length = VIDEO_MAX_PLANES;
new.m.planes = planes;
}

Expand Down

0 comments on commit 52a7771

Please sign in to comment.