]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:08:51 +0000 (12:08 +0200)
commita2b437a883701b1da697b84c548a652ac126286b
tree7cb06773e811e516ce58913684db6a42560e6dea
parent1d92608a29251278015f57f3572bc950db7519f0
media: v4l2-ctrls: Fix H264 SEPARATE_COLOUR_PLANE check

[ Upstream commit 803b9eabc649c778986449eb0596e5ffeb7a8aed ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/v4l2-core/v4l2-ctrls-core.c