mirror of
https://github.com/rockchip-linux/mpp.git
synced 2024-11-23 10:04:07 +08:00
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:
parent
24e69673a4
commit
18e19c57c6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user