projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da43778
)
videoio(v4l): initialize variables
author
Alexander Alekhin
<a.alekhin@yadro.com>
Wed, 21 Dec 2022 03:28:09 +0000
(
03:28
+0000)
committer
Alexander Alekhin
<a.alekhin@yadro.com>
Wed, 21 Dec 2022 03:28:09 +0000
(
03:28
+0000)
modules/videoio/src/cap_v4l.cpp
patch
|
blob
|
history
diff --git
a/modules/videoio/src/cap_v4l.cpp
b/modules/videoio/src/cap_v4l.cpp
index
bbc05ef
..
a5d8561
100644
(file)
--- a/
modules/videoio/src/cap_v4l.cpp
+++ b/
modules/videoio/src/cap_v4l.cpp
@@
-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;