From 9a1369833e28a7295298d97164d8b02ca31b48e5 Mon Sep 17 00:00:00 2001 From: SeungBeom Kim Date: Mon, 30 Mar 2015 18:31:20 +0200 Subject: [PATCH] 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 --- component/video/dec/Exynos_OMX_Vdec.c | 3 ++- component/video/enc/Exynos_OMX_Venc.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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; -- 2.20.1