From: Taehwan Kim Date: Tue, 20 Nov 2012 00:03:37 +0000 (+0000) Subject: venc/osal: modified a bFirstInput handling position X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=298ca87f3a3d53a59a74c794cb5a52931cdef186;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_openmax.git venc/osal: modified a bFirstInput handling position modified a bFirstInput handling position to venc from osal. Change-Id: I3b042db705b91c41104721c6a9926192166c414d Signed-off-by: Taehwan Kim --- diff --git a/component/video/enc/Exynos_OMX_VencControl.c b/component/video/enc/Exynos_OMX_VencControl.c index facba5f..07794a1 100644 --- a/component/video/enc/Exynos_OMX_VencControl.c +++ b/component/video/enc/Exynos_OMX_VencControl.c @@ -1566,7 +1566,15 @@ OMX_ERRORTYPE Exynos_OMX_VideoEncodeSetParameter( #ifdef USE_STOREMETADATA case OMX_IndexParamStoreMetaDataBuffer: { + EXYNOS_OMX_VIDEOENC_COMPONENT *pVideoEnc = (EXYNOS_OMX_VIDEOENC_COMPONENT *)pExynosComponent->hComponentHandle; + if (pVideoEnc == NULL) { + ret = OMX_ErrorBadParameter; + goto EXIT; + } + ret = Exynos_OSAL_SetANBParameter(hComponent, nParamIndex, pComponentParameterStructure); + if (ret == OMX_ErrorNone) + pVideoEnc->bFirstInput = OMX_TRUE; } break; #endif diff --git a/osal/Exynos_OSAL_Android.cpp b/osal/Exynos_OSAL_Android.cpp index 224893a..42d1284 100644 --- a/osal/Exynos_OSAL_Android.cpp +++ b/osal/Exynos_OSAL_Android.cpp @@ -46,7 +46,6 @@ #include "Exynos_OMX_Basecomponent.h" #include "Exynos_OMX_Macros.h" #include "Exynos_OMX_Vdec.h" -#include "Exynos_OMX_Venc.h" #include "Exynos_OSAL_Android.h" #include "exynos_format.h" @@ -509,7 +508,6 @@ OMX_ERRORTYPE Exynos_OSAL_SetANBParameter( case OMX_IndexParamStoreMetaDataBuffer: { - EXYNOS_OMX_VIDEOENC_COMPONENT *pVideoEnc = (EXYNOS_OMX_VIDEOENC_COMPONENT *)pExynosComponent->hComponentHandle;; StoreMetaDataInBuffersParams *pANBParams = (StoreMetaDataInBuffersParams *) ComponentParameterStructure; OMX_U32 portIndex = pANBParams->nPortIndex; EXYNOS_OMX_BASEPORT *pExynosPort = NULL; @@ -534,7 +532,6 @@ OMX_ERRORTYPE Exynos_OSAL_SetANBParameter( } pExynosPort->bStoreMetaData = pANBParams->bStoreMetaData; - pVideoEnc->bFirstInput = OMX_TRUE; } break;