From 18e19c57c6e1b53e626d7c68bd0465c76682cc62 Mon Sep 17 00:00:00 2001 From: Yandong Lin Date: Mon, 14 Oct 2024 09:43:35 +0800 Subject: [PATCH] fix[h264e_pps]: add pic_scaling_matrix_present check Not support pic_scaling_matrix_present for profile < hight profile. Change-Id: Ibf8d43063109233040a79832f66824e45d5a9c1b Signed-off-by: Yandong Lin --- mpp/codec/enc/h264/h264e_pps.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mpp/codec/enc/h264/h264e_pps.c b/mpp/codec/enc/h264/h264e_pps.c index 8702b0fd..cc9be5d5 100644 --- a/mpp/codec/enc/h264/h264e_pps.c +++ b/mpp/codec/enc/h264/h264e_pps.c @@ -100,6 +100,11 @@ MPP_RET h264e_pps_update(H264ePps *pps, MppEncCfgSet *cfg) mpp_log_f("warning: for profile %d transform_8x8_mode should be 0\n", codec->profile); } + if (pps->pic_scaling_matrix_present) { + pps->pic_scaling_matrix_present = 0; + mpp_log_f("warning: for profile %d pic_scaling_matrix_present should be 0\n", + codec->profile); + } } else { pps->second_chroma_qp_index_offset_present = 1; pps->second_chroma_qp_index_offset = codec->chroma_cr_qp_offset;