This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: libv4l2: zero v4l2_buffer Author: Tianyu Chen <[email protected]> Date: Mon Nov 24 14:34:58 2025 +0800 v4l2_buffer should be zeroed. Signed-off-by: Tianyu Chen <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> lib/libv4l2/libv4l2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=42cccb79fe84fbc0f8eb82aea5c42da3e9928aad diff --git a/lib/libv4l2/libv4l2.c b/lib/libv4l2/libv4l2.c index 06396abb2c09..0958cf7ec789 100644 --- a/lib/libv4l2/libv4l2.c +++ b/lib/libv4l2/libv4l2.c @@ -176,7 +176,7 @@ static int v4l2_map_buffers(int index) { int result = 0; unsigned int i; - struct v4l2_buffer buf; + struct v4l2_buffer buf = {}; for (i = 0; i < devices[index].no_frames; i++) { if (devices[index].frame_pointers[i] != MAP_FAILED) @@ -568,7 +568,7 @@ static int v4l2_buffers_mapped(int index) if (!v4l2_needs_conversion(index)) { /* Normal (no conversion) mode */ - struct v4l2_buffer buf; + struct v4l2_buffer buf = {}; for (i = 0; i < devices[index].no_frames; i++) { buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; _______________________________________________ linuxtv-commits mailing list -- [email protected] To unsubscribe send an email to [email protected]
