mirror of
https://github.com/nyanmisaka/mpp.git
synced 2026-01-24 01:20:40 +01:00
fix[h265e]: check input profile_idc
Change-Id: Ic8a433ecec697148b053ba9989c98fd1a76fa2fc Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
This commit is contained in:
parent
2c3988d6b4
commit
5d00860530
1 changed files with 10 additions and 1 deletions
|
|
@ -452,7 +452,16 @@ static MPP_RET h265e_proc_h265_cfg(MppEncH265Cfg *dst, MppEncH265Cfg *src)
|
|||
|
||||
// TODO: do codec check first
|
||||
if (change & MPP_ENC_H265_CFG_PROFILE_LEVEL_TILER_CHANGE) {
|
||||
dst->profile = src->profile;
|
||||
RK_S32 profile = src->profile;
|
||||
|
||||
if (MPP_PROFILE_HEVC_MAIN == profile ||
|
||||
MPP_PROFILE_HEVC_MAIN_STILL_PICTURE == profile) {
|
||||
dst->profile = profile;
|
||||
// TODO: proc main still profile
|
||||
} else {
|
||||
mpp_err("invalid profile_idc %d, keep %d", profile, dst->profile);
|
||||
}
|
||||
|
||||
dst->level = src->level;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue