OMX_U32 dataLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
int plane;
- nAllocLen[0] = calc_plane(pH264Dec->hMFCH264Handle.codecOutbufConf.nFrameWidth,
- pH264Dec->hMFCH264Handle.codecOutbufConf.nFrameHeight);
- nAllocLen[1] = calc_plane(pH264Dec->hMFCH264Handle.codecOutbufConf.nFrameWidth,
- pH264Dec->hMFCH264Handle.codecOutbufConf.nFrameHeight >> 1);
+ nAllocLen[0] = pH264Dec->hMFCH264Handle.codecOutbufConf.nAlignPlaneSize[0];
+ nAllocLen[1] = pH264Dec->hMFCH264Handle.codecOutbufConf.nAlignPlaneSize[1];
if (pExynosOutputPort->bufferProcessType & BUFFER_COPY) {
ret = Exynos_Allocate_CodecBuffers(pOMXComponent, OUTPUT_PORT_INDEX, nOutbufs, nAllocLen);