From 517e0627ef1680e00378b4f40f9dd1d20cd36aa8 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Sat, 20 Jun 2015 21:46:30 +0300 Subject: [PATCH] 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. --- encoder/ih264e_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/encoder/ih264e_api.c b/encoder/ih264e_api.c index d28fc44..0dec740 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;