EXYNOS_OMX_BASEPORT *pExynosOutputPort = &pExynosComponent->pExynosPort[OUTPUT_PORT_INDEX];
ExynosVideoDecOps *pDecOps = pH264Dec->hMFCH264Handle.pDecOps;
ExynosVideoDecBufferOps *pOutbufOps = pH264Dec->hMFCH264Handle.pOutbufOps;
- ExynosVideoBuffer *pVideoBuffer;
+ ExynosVideoBuffer *pVideoBuffer = NULL;
ExynosVideoFrameStatusType displayStatus = VIDEO_FRAME_STATUS_UNKNOWN;
ExynosVideoGeometry *bufferGeometry;
DECODE_CODEC_EXTRA_BUFFERINFO *pBufferInfo = NULL;
(displayStatus == VIDEO_FRAME_STATUS_DISPLAY_ONLY) ||
(displayStatus == VIDEO_FRAME_STATUS_CHANGE_RESOL) ||
(CHECK_PORT_BEING_FLUSHED(pExynosOutputPort))) {
- if (pVideoBuffer != NULL) {
- ret = OMX_ErrorNone;
- break;
- } else {
- ret = OMX_ErrorUndefined;
- break;
- }
+ ret = OMX_ErrorNone;
+ break;
}
}
- if (ret != OMX_ErrorNone)
- goto EXIT;
-
pH264Dec->hMFCH264Handle.outputIndexTimestamp++;
pH264Dec->hMFCH264Handle.outputIndexTimestamp %= MAX_TIMESTAMP;
EXYNOS_OMX_BASEPORT *pExynosOutputPort = &pExynosComponent->pExynosPort[OUTPUT_PORT_INDEX];
ExynosVideoDecOps *pDecOps = pMpeg4Dec->hMFCMpeg4Handle.pDecOps;
ExynosVideoDecBufferOps *pOutbufOps = pMpeg4Dec->hMFCMpeg4Handle.pOutbufOps;
- ExynosVideoBuffer *pVideoBuffer;
+ ExynosVideoBuffer *pVideoBuffer = NULL;
ExynosVideoFrameStatusType displayStatus = VIDEO_FRAME_STATUS_UNKNOWN;
ExynosVideoGeometry *bufferGeometry;
DECODE_CODEC_EXTRA_BUFFERINFO *pBufferInfo = NULL;
(displayStatus == VIDEO_FRAME_STATUS_DISPLAY_ONLY) ||
(displayStatus == VIDEO_FRAME_STATUS_CHANGE_RESOL) ||
(CHECK_PORT_BEING_FLUSHED(pExynosOutputPort))) {
- if (pVideoBuffer != NULL) {
- ret = OMX_ErrorNone;
- break;
- } else {
- ret = OMX_ErrorUndefined;
- break;
- }
+ ret = OMX_ErrorNone;
+ break;
}
}
- if (ret != OMX_ErrorNone)
- goto EXIT;
-
pMpeg4Dec->hMFCMpeg4Handle.outputIndexTimestamp++;
pMpeg4Dec->hMFCMpeg4Handle.outputIndexTimestamp %= MAX_TIMESTAMP;
EXYNOS_OMX_BASEPORT *pExynosOutputPort = &pExynosComponent->pExynosPort[OUTPUT_PORT_INDEX];
ExynosVideoDecOps *pDecOps = pVp8Dec->hMFCVp8Handle.pDecOps;
ExynosVideoDecBufferOps *pOutbufOps = pVp8Dec->hMFCVp8Handle.pOutbufOps;
- ExynosVideoBuffer *pVideoBuffer;
+ ExynosVideoBuffer *pVideoBuffer = NULL;
ExynosVideoFrameStatusType displayStatus = VIDEO_FRAME_STATUS_UNKNOWN;
ExynosVideoGeometry *bufferGeometry;
DECODE_CODEC_EXTRA_BUFFERINFO *pBufferInfo = NULL;
(displayStatus == VIDEO_FRAME_STATUS_DISPLAY_ONLY) ||
(displayStatus == VIDEO_FRAME_STATUS_CHANGE_RESOL) ||
(CHECK_PORT_BEING_FLUSHED(pExynosOutputPort))) {
- if (pVideoBuffer != NULL) {
- ret = OMX_ErrorNone;
- break;
- } else {
- ret = OMX_ErrorUndefined;
- break;
- }
+ ret = OMX_ErrorNone;
+ break;
}
}
- if (ret != OMX_ErrorNone)
- goto EXIT;
-
pVp8Dec->hMFCVp8Handle.outputIndexTimestamp++;
pVp8Dec->hMFCVp8Handle.outputIndexTimestamp %= MAX_TIMESTAMP;
ret = H264CodecDstSetup(pOMXComponent);
}
- if ((pSrcInputData->dataLen >= 0) ||
+ if ((pSrcInputData->dataLen > 0) ||
((pSrcInputData->nFlags & OMX_BUFFERFLAG_EOS) == OMX_BUFFERFLAG_EOS)) {
OMX_U32 nAllocLen[MFC_INPUT_BUFFER_PLANE] = {0, 0};
OMX_U32 pMFCYUVDataSize[MFC_INPUT_BUFFER_PLANE] = {NULL, NULL};
ret = Mpeg4CodecDstSetup(pOMXComponent);
}
- if ((pSrcInputData->dataLen >= 0) ||
+ if ((pSrcInputData->dataLen > 0) ||
((pSrcInputData->nFlags & OMX_BUFFERFLAG_EOS) == OMX_BUFFERFLAG_EOS)) {
OMX_U32 nAllocLen[MFC_INPUT_BUFFER_PLANE] = {0, 0};
OMX_U32 pMFCYUVDataSize[MFC_INPUT_BUFFER_PLANE] = {NULL, NULL};