media: v4l2-ctrls: Fix H264 SEPARATE_COLOUR_PLANE check
authorJames Cowgill <james.cowgill@blaize.com>
Wed, 4 Jun 2025 14:38:48 +0000 (14:38 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 20 Jun 2025 11:20:17 +0000 (13:20 +0200)
commit803b9eabc649c778986449eb0596e5ffeb7a8aed
tree33c4eac6888ba0f56f00fd862f84916b2c6071b6
parent401fb1955f915694808e77471cd1014d4fa2683e
media: v4l2-ctrls: Fix H264 SEPARATE_COLOUR_PLANE check

The `separate_colour_plane_flag` element is only present in the SPS if
`chroma_format_idc == 3`, so the corresponding flag should be disabled
whenever that is not the case and not just on profiles where
`chroma_format_idc` is not present.

Fixes: b32e48503df0 ("media: controls: Validate H264 stateless controls")
Signed-off-by: James Cowgill <james.cowgill@blaize.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/v4l2-core/v4l2-ctrls-core.c