if there is a skipping frame before the EOS frame,
used the already saved index about timestamp.
so, couldn't notice the EOS flag.
this patch fixes the above problem.
Change-Id: Ib2d7329f4e3c3f4f46fa5bc92bcbd3371af7a09e
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
/* For timestamp correction. if mfc support frametype detect */
Exynos_OSAL_Log(EXYNOS_LOG_TRACE, "disp_pic_frame_type: %d", pVideoBuffer->frameType);
#ifdef NEED_TIMESTAMP_REORDER
- if ((pVideoBuffer->frameType == VIDEO_FRAME_I)) {
+ if ((pVideoBuffer->frameType == VIDEO_FRAME_I) ||
+ ((pVideoBuffer->frameType == VIDEO_FRAME_OTHERS) &&
+ ((pExynosComponent->nFlags[indexTimestamp] & OMX_BUFFERFLAG_EOS) == OMX_BUFFERFLAG_EOS))) {
pDstOutputData->timeStamp = pExynosComponent->timeStamp[indexTimestamp];
pDstOutputData->nFlags = pExynosComponent->nFlags[indexTimestamp];
pWmvDec->hMFCWmvHandle.outputIndexTimestamp = indexTimestamp;