From f107ed0451c29abdced8bd0dddd690c664a7c558 Mon Sep 17 00:00:00 2001 From: wenchangliu Date: Wed, 10 Mar 2021 15:22:24 +0800 Subject: msm: vidc: limit max level to 5.2 for avc encoder limit the max level to 5.2 for avc encoder to avoid cross platform capability issue from 3rd party app(Ex: LINE, TiTok) Bug: 172521975 Test: Reproduce steps in bug. Change-Id: I29b85a5400269f12ea1abae768740acdda945a51 Signed-off-by: wenchangliu --- msm/vidc/msm_vidc_platform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/msm/vidc/msm_vidc_platform.c b/msm/vidc/msm_vidc_platform.c index 96e510e..0777e75 100644 --- a/msm/vidc/msm_vidc_platform.c +++ b/msm/vidc/msm_vidc_platform.c @@ -287,8 +287,8 @@ static struct msm_vidc_codec_capability lito_capabilities_v0[] = { unknown as well, which creates a problem of allowing client to set higher level than supported */ {CAP_H264_LEVEL, ENC, H264, V4L2_MPEG_VIDEO_H264_LEVEL_1_0, - V4L2_MPEG_VIDEO_H264_LEVEL_6_0, 1, - V4L2_MPEG_VIDEO_H264_LEVEL_6_0}, + V4L2_MPEG_VIDEO_H264_LEVEL_5_2, 1, + V4L2_MPEG_VIDEO_H264_LEVEL_5_2}, {CAP_HEVC_LEVEL, ENC, HEVC, V4L2_MPEG_VIDEO_HEVC_LEVEL_1, V4L2_MPEG_VIDEO_HEVC_LEVEL_6, 1, V4L2_MPEG_VIDEO_HEVC_LEVEL_6}, @@ -389,8 +389,8 @@ static struct msm_vidc_codec_capability lito_capabilities_v1[] = { unknown as well, which creates a problem of allowing client to set higher level than supported */ {CAP_H264_LEVEL, ENC, H264, V4L2_MPEG_VIDEO_H264_LEVEL_1_0, - V4L2_MPEG_VIDEO_H264_LEVEL_6_0, 1, - V4L2_MPEG_VIDEO_H264_LEVEL_6_0}, + V4L2_MPEG_VIDEO_H264_LEVEL_5_2, 1, + V4L2_MPEG_VIDEO_H264_LEVEL_5_2}, {CAP_HEVC_LEVEL, ENC, HEVC, V4L2_MPEG_VIDEO_HEVC_LEVEL_1, V4L2_MPEG_VIDEO_HEVC_LEVEL_6, 1, V4L2_MPEG_VIDEO_HEVC_LEVEL_6}, -- cgit v1.2.3