aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hu <austin.hu@intel.com>2016-04-18 19:50:13 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-04-18 19:50:13 +0000
commit730ec80d5753f18f4bc444cdb77ba5470dd3fdf9 (patch)
tree101b8582892412c4e3ff60f654296e1d3b390407
parent32c88e6161d32b491d8f7e835357a222cc2a8fb2 (diff)
parentbf8247257249460aaf25d5d40a50c7aa5cbcb156 (diff)
downloadwrs_omxil_core-730ec80d5753f18f4bc444cdb77ba5470dd3fdf9.tar.gz
Revert "Fixed the incorrect stride and slice height settings of OMX video port."a am: 44c7c2d am: 058936a
am: bf82472 * commit 'bf8247257249460aaf25d5d40a50c7aa5cbcb156': Revert "Fixed the incorrect stride and slice height settings of OMX video port."a Change-Id: I963983f8afa19af0580f0ed307a2392360835bbe
-rw-r--r--base/src/portbase.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/base/src/portbase.cpp b/base/src/portbase.cpp
index 2f1ec92..a707876 100644
--- a/base/src/portbase.cpp
+++ b/base/src/portbase.cpp
@@ -264,9 +264,13 @@ OMX_ERRORTYPE PortBase::SetPortDefinition(
OMX_S32 nFrameSize = getFrameBufSize(format->eColorFormat,format->nFrameWidth,format->nFrameHeight);
if(nFrameSize!=-1)
temp.nBufferSize = nFrameSize;
-
- format->nStride = pformat->nStride;
- format->nSliceHeight = pformat->nSliceHeight;
+ if (overwrite_readonly) {
+ format->nStride = pformat->nStride;
+ format->nSliceHeight = pformat->nSliceHeight;
+ } else {
+ format->nStride = pformat->nFrameWidth;
+ format->nSliceHeight = pformat->nFrameHeight;
+ }
break;
}