Hi,
this is no bug in libv4l but a shortcoming in valgrind.
IOCTL doc: To query the current parameters applications set the type field of a struct v4l2_format to the respective buffer (stream) type.
CODE: struct v4l2_format fmt; ... fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; if (SYS_IOCTL(fd, VIDIOC_G_FMT, &fmt)) {
So it is completely legal to just initialize the 'type' field.
I suggest to either close this bug or reassign to valgrind.
Thanks, Gregor
Hi,
this is no bug in libv4l but a shortcoming in valgrind.
IOCTL doc:
To query the current parameters applications set the type field of a struct v4l2_format to the respective buffer (stream) type.
CODE: TYPE_VIDEO_ CAPTURE;
struct v4l2_format fmt;
...
fmt.type = V4L2_BUF_
if (SYS_IOCTL(fd, VIDIOC_G_FMT, &fmt)) {
So it is completely legal to just initialize the 'type' field.
I suggest to either close this bug or reassign to valgrind.
Thanks,
Gregor