未验证 提交 91ac7902 编写于 作者: A Alexander Smorkalov 提交者: GitHub

Merge pull request #23001 from alalek:videoio_init_vars

videoio(v4l): initialize variables
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册