From: Andreas Schneider Date: Tue, 5 May 2015 22:35:09 +0000 (+0200) Subject: video_dec: Add ThumbnailMode decoding to WMV X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9f114c53247306dfc2d33cd9a12bb336f69efa25;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_openmax.git video_dec: Add ThumbnailMode decoding to WMV Change-Id: Iffbed657f6e58e63cafce1cb5ebfe9f678ef07a1 Signed-off-by: Andreas Schneider --- diff --git a/component/video/dec/vc1/Exynos_OMX_Wmvdec.c b/component/video/dec/vc1/Exynos_OMX_Wmvdec.c index b5193a0..b4640c4 100644 --- a/component/video/dec/vc1/Exynos_OMX_Wmvdec.c +++ b/component/video/dec/vc1/Exynos_OMX_Wmvdec.c @@ -806,7 +806,7 @@ OMX_ERRORTYPE WmvCodecSrcSetup(OMX_COMPONENTTYPE *pOMXComponent, EXYNOS_OMX_DATA } if (pVideoDec->bThumbnailMode == OMX_TRUE) - pDecOps->Set_DisplayDelay(hMFCHandle, 0); + pDecOps->Set_IFrameDecoding(hMFCHandle); if ((pDecOps->Enable_DTSMode != NULL) && (pVideoDec->bDTSMode == OMX_TRUE)) @@ -1465,13 +1465,7 @@ OMX_ERRORTYPE Exynos_WmvDec_GetExtensionIndex( goto EXIT; } - if (Exynos_OSAL_Strcmp(cParameterName, EXYNOS_INDEX_PARAM_ENABLE_THUMBNAIL) == 0) { - EXYNOS_WMVDEC_HANDLE *pWmvDec = (EXYNOS_WMVDEC_HANDLE *)((EXYNOS_OMX_VIDEODEC_COMPONENT *)pExynosComponent->hComponentHandle)->hCodecHandle; - *pIndexType = OMX_IndexParamEnableThumbnailMode; - ret = OMX_ErrorNone; - } else { - ret = Exynos_OMX_VideoDecodeGetExtensionIndex(hComponent, cParameterName, pIndexType); - } + ret = Exynos_OMX_VideoDecodeGetExtensionIndex(hComponent, cParameterName, pIndexType); EXIT: FunctionOut();