summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libcamera/v4l2_device.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp
index b86a6295..4d1f76be 100644
--- a/src/libcamera/v4l2_device.cpp
+++ b/src/libcamera/v4l2_device.cpp
@@ -331,6 +331,7 @@ int V4L2Device::setFormatSingleplane(V4L2DeviceFormat *format)
pix->width = format->width;
pix->height = format->height;
pix->pixelformat = format->fourcc;
+ pix->bytesperline = format->planes[0].bpl;
ret = ioctl(fd_, VIDIOC_S_FMT, &v4l2Format);
if (ret) {