video_dec: Fix issue where EOS Flag is returned multiple times for vc1
authorSeungBeom Kim <sbcrux.kim@samsung.com>
Tue, 30 Jun 2015 16:28:17 +0000 (19:28 +0300)
committerEthan Chen <intervigil@gmail.com>
Tue, 30 Jun 2015 16:41:48 +0000 (09:41 -0700)
Change-Id: I803054e7bd2939487b8f821b6b937a4f0e7e2244

component/video/dec/vc1/Exynos_OMX_Wmvdec.c

index b4640c460e6e2333a8a4fc898073aa037b10aad7..d35aa3b8ab369c8ed4a5fd64bdd3751b4a5f1ce8 100644 (file)
@@ -2002,6 +2002,7 @@ OMX_ERRORTYPE Exynos_WmvDec_DstOut(OMX_COMPONENTTYPE *pOMXComponent, EXYNOS_OMX_
             } else {
                 pDstOutputData->timeStamp = pExynosComponent->timeStamp[pWmvDec->hMFCWmvHandle.outputIndexTimestamp];
                 pDstOutputData->nFlags = pExynosComponent->nFlags[pWmvDec->hMFCWmvHandle.outputIndexTimestamp];
+                pExynosComponent->nFlags[pWmvDec->hMFCWmvHandle.outputIndexTimestamp] = 0x00;
                 Exynos_OSAL_Log(EXYNOS_LOG_TRACE, "missing out indexTimestamp: %d", indexTimestamp);
             }
         } else {
@@ -2025,6 +2026,7 @@ OMX_ERRORTYPE Exynos_WmvDec_DstOut(OMX_COMPONENTTYPE *pOMXComponent, EXYNOS_OMX_
 
         pDstOutputData->timeStamp = pExynosComponent->timeStamp[indexTimestamp];
         pDstOutputData->nFlags = pExynosComponent->nFlags[indexTimestamp];
+        pExynosComponent->nFlags[indexTimestamp] = 0x00;
 
         Exynos_OSAL_Log(EXYNOS_LOG_TRACE, "timestamp %lld us (%.2f secs), indexTimestamp: %d, nFlags: 0x%x", pDstOutputData->timeStamp, pDstOutputData->timeStamp / 1E6, indexTimestamp, pDstOutputData->nFlags);
     }