]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: rkvdec: h264: Limit minimum profile to constrained baseline
authorSebastian Fricke <sebastian.fricke@collabora.com>
Thu, 1 May 2025 19:55:47 +0000 (15:55 -0400)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 15 May 2025 06:13:31 +0000 (08:13 +0200)
Neither the hardware nor the kernel API support FMO/ASO features
required by the full baseline profile. Therefore limit the minimum
profile to the constrained baseline profile explicitly.

Suggested-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/staging/media/rkvdec/rkvdec.c

index dd7e57a902640d363d26be887cb535c2668d5b15..65c6f1d07a493e017ae941780b823d41314a49b8 100644 (file)
@@ -150,7 +150,7 @@ static const struct rkvdec_ctrl_desc rkvdec_h264_ctrl_descs[] = {
        },
        {
                .cfg.id = V4L2_CID_MPEG_VIDEO_H264_PROFILE,
-               .cfg.min = V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE,
+               .cfg.min = V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_BASELINE,
                .cfg.max = V4L2_MPEG_VIDEO_H264_PROFILE_HIGH,
                .cfg.menu_skip_mask =
                        BIT(V4L2_MPEG_VIDEO_H264_PROFILE_EXTENDED),