aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hu <austin.hu@intel.com>2016-04-05 17:27:21 +0800
committerNick Desaulniers <ndesaulniers@google.com>2016-04-06 18:24:18 +0000
commit29279a60efae18de2329437e127d47a27a48c2da (patch)
tree4a19465b557c811badadcfc2f30aab66d3377548
parent3e858c34513e6dfba295d3ac4768ce7ef31ceab7 (diff)
downloadwrs_omxil_core-29279a60efae18de2329437e127d47a27a48c2da.tar.gz
Fixed the incorrect stride and slice height settings of OMX video port.
Bug: 27688967 Change-Id: Ie3dc22520f23ac5027f2a1a09109e3810ded1f63 Signed-off-by: Austin Hu <austin.hu@intel.com>
-rw-r--r--base/src/portbase.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/base/src/portbase.cpp b/base/src/portbase.cpp
index a707876..2f1ec92 100644
--- a/base/src/portbase.cpp
+++ b/base/src/portbase.cpp
@@ -264,13 +264,9 @@ OMX_ERRORTYPE PortBase::SetPortDefinition(
OMX_S32 nFrameSize = getFrameBufSize(format->eColorFormat,format->nFrameWidth,format->nFrameHeight);
if(nFrameSize!=-1)
temp.nBufferSize = nFrameSize;
- if (overwrite_readonly) {
- format->nStride = pformat->nStride;
- format->nSliceHeight = pformat->nSliceHeight;
- } else {
- format->nStride = pformat->nFrameWidth;
- format->nSliceHeight = pformat->nFrameHeight;
- }
+
+ format->nStride = pformat->nStride;
+ format->nSliceHeight = pformat->nSliceHeight;
break;
}