From: SeungBeom Kim Date: Mon, 30 Mar 2015 16:31:20 +0000 (+0200) Subject: video_[enc|dec]: Add support for resubmitting CSDs after flush X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9a1369833e28a7295298d97164d8b02ca31b48e5;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_openmax.git video_[enc|dec]: Add support for resubmitting CSDs after flush This modifies OMX code for seeking. Backported-from: hardware/samsung_slsi/exynos5 Change-Id: Ia340e4d9274f7691917e71fa77fd38f0bd037d81 Signed-off-by: Andreas Schneider --- diff --git a/component/video/dec/Exynos_OMX_Vdec.c b/component/video/dec/Exynos_OMX_Vdec.c index 154f814..bb2b785 100644 --- a/component/video/dec/Exynos_OMX_Vdec.c +++ b/component/video/dec/Exynos_OMX_Vdec.c @@ -587,7 +587,8 @@ OMX_BOOL Exynos_Preprocessor_InputData(OMX_COMPONENTTYPE *pOMXComponent, EXYNOS_ pExynosComponent->bBehaviorEOS = OMX_TRUE; } - if (pExynosComponent->checkTimeStamp.needSetStartTimeStamp == OMX_TRUE) { + if ((pExynosComponent->checkTimeStamp.needSetStartTimeStamp == OMX_TRUE) && + (srcInputData->nFlags & OMX_BUFFERFLAG_CODECCONFIG) != OMX_BUFFERFLAG_CODECCONFIG) { pExynosComponent->checkTimeStamp.needCheckStartTimeStamp = OMX_TRUE; pExynosComponent->checkTimeStamp.startTimeStamp = srcInputData->timeStamp; pExynosComponent->checkTimeStamp.nStartFlags = srcInputData->nFlags; diff --git a/component/video/enc/Exynos_OMX_Venc.c b/component/video/enc/Exynos_OMX_Venc.c index 66f6a32..b03ce13 100644 --- a/component/video/enc/Exynos_OMX_Venc.c +++ b/component/video/enc/Exynos_OMX_Venc.c @@ -680,7 +680,8 @@ OMX_BOOL Exynos_Preprocessor_InputData(OMX_COMPONENTTYPE *pOMXComponent, EXYNOS_ pExynosComponent->bBehaviorEOS = OMX_TRUE; } - if (pExynosComponent->checkTimeStamp.needSetStartTimeStamp == OMX_TRUE) { + if ((pExynosComponent->checkTimeStamp.needSetStartTimeStamp == OMX_TRUE) && + (srcInputData->nFlags & OMX_BUFFERFLAG_CODECCONFIG) != OMX_BUFFERFLAG_CODECCONFIG) { pExynosComponent->checkTimeStamp.needCheckStartTimeStamp = OMX_TRUE; pExynosComponent->checkTimeStamp.startTimeStamp = srcInputData->timeStamp; pExynosComponent->checkTimeStamp.nStartFlags = srcInputData->nFlags;