Re: Initialize v4l2_requestbuffers struct to avoid invalid mmap

2020-05-29 Thread Ingo Feinerer
On Thu, May 28, 2020 at 12:23:58PM +0200, Martin Pieuchot wrote: > On 26/05/20(Tue) 11:30, Ingo Feinerer wrote: > > video(1) supports reading frames from a webcam via mmap(). To inform the > > V4L2 device about the number of desired buffers containing the frames to > > be memory-mapped, a

Re: Initialize v4l2_requestbuffers struct to avoid invalid mmap

2020-05-28 Thread Martin Pieuchot
On 26/05/20(Tue) 11:30, Ingo Feinerer wrote: > video(1) supports reading frames from a webcam via mmap(). To inform the > V4L2 device about the number of desired buffers containing the frames to > be memory-mapped, a VIDIOC_REQBUFS ioctl call is used. > > At the moment the v4l2_requestbuffers

Initialize v4l2_requestbuffers struct to avoid invalid mmap

2020-05-26 Thread Ingo Feinerer
video(1) supports reading frames from a webcam via mmap(). To inform the V4L2 device about the number of desired buffers containing the frames to be memory-mapped, a VIDIOC_REQBUFS ioctl call is used. At the moment the v4l2_requestbuffers struct used for the VIDIOC_REQBUFS ioctl is only partially