When trying to build ffmpeg 8, the building process fails with these error messages:
libavdevice/v4l2.c: In function ‘device_open’:
libavdevice/v4l2.c:191:35: error: ‘V4L2_CAP_VIDEO_CAPTURE_MPLANE’ undeclared (first use in this function)
} else if (cap.capabilities & V4L2_CAP_VIDEO_CAPTURE_MPLANE) {
libavdevice/v4l2.c:191:35: note: each undeclared identifier is reported only once for each function it appears in
libavdevice/v4l2.c:193:23: error: ‘V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE’ undeclared (first use in this function)
s->buf_type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
libavdevice/v4l2.c: In function ‘mmap_init’:
libavdevice/v4l2.c:394:34: error: ‘VIDEO_MAX_PLANES’ undeclared (first use in this function)
struct v4l2_plane planes[VIDEO_MAX_PLANES];
libavdevice/v4l2.c:399:13: error: unknown field ‘planes’ specified in initializer
.m.planes = s->multiplanar ? planes : NULL,
Other similar error messages related to planes or VIDEO_MAX_PLANES also appears.
FFmpeg 7.0.3 builds fine.