aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrujan Vandrangi <srujan.vandrangi@ittiam.com>2023-12-18 15:04:44 +0530
committerHarish Mahendrakar <harish.mahendrakar@ittiam.com>2023-12-19 20:45:31 -0800
commit0d29250b990430ca0d7346459c11ca053380bbb5 (patch)
tree07e67a1d6b915204c7a89b082530d4e9f8057d0a
parent63b8be0524cbbbafe9f0a0d527ee5d23ab2d8724 (diff)
downloadlibavc-0d29250b990430ca0d7346459c11ca053380bbb5.tar.gz
libavcenc: fix build issues on android
Test: Build
-rw-r--r--encoder/ih264e_api.c1
-rw-r--r--encoder/ih264e_encode.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/encoder/ih264e_api.c b/encoder/ih264e_api.c
index 019a288..c952225 100644
--- a/encoder/ih264e_api.c
+++ b/encoder/ih264e_api.c
@@ -815,7 +815,6 @@ static IV_STATUS_T api_check_struct_sanity(iv_obj_t *ps_handle,
case IVE_CMD_VIDEO_ENCODE:
{
- codec_t *ps_codec = (codec_t *) (ps_handle->pv_codec_handle);
ih264e_video_encode_ip_t *ps_ip = pv_api_ip;
ih264e_video_encode_op_t *ps_op = pv_api_op;
diff --git a/encoder/ih264e_encode.c b/encoder/ih264e_encode.c
index e6ca3be..1613e77 100644
--- a/encoder/ih264e_encode.c
+++ b/encoder/ih264e_encode.c
@@ -528,7 +528,7 @@ WORD32 ih264e_encode(iv_obj_t *ps_codec_obj, void *pv_api_ip, void *pv_api_op)
{
if (IV_SUCCESS != api_check_input_dimensions(ps_codec, pv_api_ip, pv_api_op))
{
- error_status = IVE_ERR_OP_ENCODE_API_STRUCT_SIZE_INCORRECT;
+ error_status = IH264E_FAIL;
SET_ERROR_ON_RETURN(error_status,
IVE_FATALERROR,
ps_video_encode_op->s_ive_op.u4_error_code,