This patch solves eos event not returned issue
Change-Id: Ibeb571b24172f60f9cd11d4f5c22162018d77b45
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
}
bStartCode = Check_Stream_PrefixCode(pSrcInputData->buffer.singlePlaneBuffer.dataBuffer, oneFrameSize, pWmvDec->hMFCWmvHandle.wmvFormat);
- if (bStartCode == OMX_FALSE) {
+ if ((bStartCode == OMX_FALSE) &&
+ ((pSrcInputData->nFlags & OMX_BUFFERFLAG_EOS) != OMX_BUFFERFLAG_EOS)) {
if (pSrcInputData->allocSize < oneFrameSize+4) {
Exynos_OSAL_Log(EXYNOS_LOG_ERROR, "Can't attach startcode due to lack of buffer space");
ret = (OMX_ERRORTYPE)OMX_ErrorCodecDecode;