summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/v4l2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/v4l2.c b/lib/v4l2.c
index de6ed88..6702ece 100644
--- a/lib/v4l2.c
+++ b/lib/v4l2.c
@@ -487,6 +487,7 @@ int v4l2_set_format(struct v4l2_device *dev, struct v4l2_pix_format *format)
fmt.fmt.pix.height = format->height;
fmt.fmt.pix.pixelformat = format->pixelformat;
fmt.fmt.pix.field = V4L2_FIELD_ANY;
+ fmt.fmt.pix.sizeimage = format->sizeimage;
ret = ioctl(dev->fd, VIDIOC_S_FMT, &fmt);
if (ret < 0) {