diff options
author | Sunita Nadampalli <sunitan@ti.com> | 2016-07-28 16:24:13 -0500 |
---|---|---|
committer | Sunita Nadampalli <sunitan@ti.com> | 2016-08-24 13:11:38 -0500 |
commit | c225a89c9c076386d2e1f32467ceabce24136efd (patch) | |
tree | 34dfe96a38daf60710e3e9d40c7306f52af79e11 | |
parent | 07c6973fbd38b163c781005d5a0d8357b280d661 (diff) | |
download | dra7xx-c225a89c9c076386d2e1f32467ceabce24136efd.tar.gz |
OMX: VideoDecoder: Fix omx parameter for sliceheight to consider padding
Change-Id: I74167e6d74811197e5561a89fcd8d4d37bc42b38
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
-rw-r--r-- | omx/videodecode/omx_videodec_common/src/omx_video_decoder_internal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/omx/videodecode/omx_videodec_common/src/omx_video_decoder_internal.c b/omx/videodecode/omx_videodec_common/src/omx_video_decoder_internal.c index e62c7d9..32e34a3 100644 --- a/omx/videodecode/omx_videodec_common/src/omx_video_decoder_internal.c +++ b/omx/videodecode/omx_videodec_common/src/omx_video_decoder_internal.c @@ -597,6 +597,7 @@ OMX_ERRORTYPE OMXVidDec_HandleFirstFrame(OMX_HANDLETYPE hComponent, OMXVidDec_Set2DBuffParams(hComponent, pHandle->pComponentPrivate); pOutputPortDef->format.video.nStride = p2DOutBufAllocParam->nWidth; + pOutputPortDef->format.video.nSliceHeight = p2DOutBufAllocParam->nHeight; pOutputPortDef->nBufferSize = pOutputPortDef->format.video.nStride * ((pVidDecComp->t2DBufferAllocParams[OMX_VIDDEC_OUTPUT_PORT].nHeight * 3) >> 1); @@ -866,6 +867,7 @@ OMX_ERRORTYPE OMXVidDec_HandleCodecProcError(OMX_HANDLETYPE hComponent, pOutputPortDef->format.video.nFrameHeight = p2DOutBufAllocParam->nHeight; pOutputPortDef->format.video.nFrameWidth = p2DOutBufAllocParam->nWidth; pOutputPortDef->format.video.nStride = p2DOutBufAllocParam->nWidth; + pOutputPortDef->format.video.nSliceHeight = p2DOutBufAllocParam->nHeight; } } |