1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #23001 from alalek:videoio_init_vars

videoio(v4l): initialize variables
This commit is contained in:
Alexander Smorkalov
2022-12-21 09:56:55 +03:00
committed by GitHub
+2 -2
View File
@@ -883,8 +883,8 @@ bool CvCaptureCAM_V4L::createBuffers()
for (unsigned int n_buffers = 0; n_buffers < req.count; ++n_buffers) {
v4l2_buffer buf = v4l2_buffer();
v4l2_plane mplanes[VIDEO_MAX_PLANES];
size_t length;
off_t offset;
size_t length = 0;
off_t offset = 0;
buf.type = type;
buf.memory = V4L2_MEMORY_MMAP;
buf.index = n_buffers;