diff options
author | Austin Hu <austin.hu@intel.com> | 2016-04-06 20:32:32 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-04-06 20:32:32 +0000 |
commit | 32c88e6161d32b491d8f7e835357a222cc2a8fb2 (patch) | |
tree | 4a19465b557c811badadcfc2f30aab66d3377548 | |
parent | 0f5597c0e53478b3ae75786eefbb1950698514a1 (diff) | |
parent | 134d5f74e45d796b48419dd9b4bd93d0d2ee25a2 (diff) | |
download | wrs_omxil_core-32c88e6161d32b491d8f7e835357a222cc2a8fb2.tar.gz |
Fixed the incorrect stride and slice height settings of OMX video port. am: 29279a6
am: 134d5f7
* commit '134d5f74e45d796b48419dd9b4bd93d0d2ee25a2':
Fixed the incorrect stride and slice height settings of OMX video port.
Change-Id: Ia32ac9287a576123a2987577aafc420bf92fcd4c
-rw-r--r-- | base/src/portbase.cpp | 10 |
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; } |