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 <yandong.lin@rock-chips.com>
This commit is contained in:
Yandong Lin 2024-10-14 09:43:35 +08:00 committed by Herman Chen
parent 24e69673a4
commit 18e19c57c6

View File

@ -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;