From 2aca2a8a64c200ff85c0edf87ece3b66577d2391 Mon Sep 17 00:00:00 2001 From: Lajos Molnar Date: Thu, 13 Feb 2014 14:09:17 -0800 Subject: [PATCH] Don't advertise metadata mode for VP8 decoder. Disable metadata mode until android.media.cts.AdaptivePlaybackTest passes. Bug: 13012352 Change-Id: I759fb94c91c9f9e8108ed30fa2a2861ffc25096a --- exynos_omx/openmax/exynos_omx/osal/Exynos_OSAL_Android.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/exynos_omx/openmax/exynos_omx/osal/Exynos_OSAL_Android.cpp b/exynos_omx/openmax/exynos_omx/osal/Exynos_OSAL_Android.cpp index da348f3..9eda9b7 100644 --- a/exynos_omx/openmax/exynos_omx/osal/Exynos_OSAL_Android.cpp +++ b/exynos_omx/openmax/exynos_omx/osal/Exynos_OSAL_Android.cpp @@ -800,6 +800,13 @@ OMX_ERRORTYPE Exynos_OSAL_SetANBParameter( goto EXIT; } + // WORKAROUND: do not advertise metadata mode support for VP8 decoder until it can handle dynamic resolution change + bool isVP8Decoder = pExynosComponent->pExynosPort[INPUT_PORT_INDEX].portDefinition.format.video.eCompressionFormat == OMX_VIDEO_CodingVPX; + if (isVP8Decoder && portIndex == OUTPUT_PORT_INDEX) { + ret = OMX_ErrorNotImplemented; + goto EXIT; + } + pExynosPort->bStoreMetaData = pANBParams->bStoreMetaData; if (pExynosComponent->codecType == HW_VIDEO_ENC_CODEC) { EXYNOS_OMX_VIDEOENC_COMPONENT *pVideoEnc = (EXYNOS_OMX_VIDEOENC_COMPONENT *)pExynosComponent->hComponentHandle;; -- 2.20.1