[automerger] Encoder: Return error for odd resolution am: 9fa58d4db3 am: f56e0c0ed3 am: db53adff11 am: 538e4ed787 am: c8fc4c0206 am: 2e1c177836 am: 353851c307 am: 207d68137f am: 0bc2eef47a
am: 1f7f247c05
Change-Id: I50b2531f3de70bf439b6fb17678075501e0f9784
This commit is contained in:
commit
f4ad409786
1 changed files with 18 additions and 0 deletions
|
|
@ -1147,6 +1147,24 @@ static IV_STATUS_T api_check_struct_sanity(iv_obj_t *ps_handle,
|
||||||
return (IV_FAIL);
|
return (IV_FAIL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(ps_ip->s_ive_ip.u4_wd & 1)
|
||||||
|
{
|
||||||
|
ps_op->s_ive_op.u4_error_code |= 1
|
||||||
|
<< IVE_UNSUPPORTEDPARAM;
|
||||||
|
ps_op->s_ive_op.u4_error_code |=
|
||||||
|
IH264E_WIDTH_NOT_SUPPORTED;
|
||||||
|
return (IV_FAIL);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(ps_ip->s_ive_ip.u4_ht & 1)
|
||||||
|
{
|
||||||
|
ps_op->s_ive_op.u4_error_code |= 1
|
||||||
|
<< IVE_UNSUPPORTEDPARAM;
|
||||||
|
ps_op->s_ive_op.u4_error_code |=
|
||||||
|
IH264E_HEIGHT_NOT_SUPPORTED;
|
||||||
|
return (IV_FAIL);
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue