Allow setting profile IV_PROFILE_MAIN
Now once that the encoder supports the main profile, allow it to be set in the IVE_CMD_CTL_SET_PROFILE_PARAMS request. The actual profile value set here is ignored in practice, but at least allow setting it to main.
This commit is contained in:
parent
d2d469e520
commit
517e0627ef
1 changed files with 2 additions and 1 deletions
|
|
@ -1748,7 +1748,8 @@ static IV_STATUS_T api_check_struct_sanity(iv_obj_t *ps_handle,
|
|||
return IV_FAIL;
|
||||
}
|
||||
|
||||
if (ps_ip->s_ive_ip.e_profile != IV_PROFILE_BASE)
|
||||
if (ps_ip->s_ive_ip.e_profile != IV_PROFILE_BASE &&
|
||||
ps_ip->s_ive_ip.e_profile != IV_PROFILE_MAIN)
|
||||
{
|
||||
ps_op->s_ive_op.u4_error_code |= 1
|
||||
<< IVE_UNSUPPORTEDPARAM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue