]> 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:05:01 +0000 (12:05 +0200)
commit34a40f091f72ac9d8b72bb0cd1a435b52405239d
tree527cffe9794dbc087a2b3a09132cda274ab7ab99
parent105e8115944a9f93e9412abe7bb07ed96725adf9
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