summaryrefslogtreecommitdiffstats
path: root/encoder
diff options
context:
space:
mode:
Diffstat (limited to 'encoder')
-rw-r--r--encoder/ih264e_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/encoder/ih264e_api.c b/encoder/ih264e_api.c
index 881ea53..df8d6ec 100644
--- a/encoder/ih264e_api.c
+++ b/encoder/ih264e_api.c
@@ -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;