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 7bcbd73..01129a5 100644
--- a/lib/v4l2.c
+++ b/lib/v4l2.c
@@ -789,6 +789,7 @@ int v4l2_dequeue_buffer(struct v4l2_device *dev, struct video_buffer *buffer)
}
buffer->index = buf.index;
+ buffer->size = buf.length;
buffer->mem = dev->buffers.buffers[buf.index].mem;
buffer->bytesused = buf.bytesused;
buffer->timestamp = buf.timestamp;