aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hu <austin.hu@intel.com>2016-04-06 20:30:16 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-04-06 20:30:16 +0000
commit134d5f74e45d796b48419dd9b4bd93d0d2ee25a2 (patch)
tree4a19465b557c811badadcfc2f30aab66d3377548
parent4d884c325166abf0abd76530b0380c052c88b21b (diff)
parent29279a60efae18de2329437e127d47a27a48c2da (diff)
downloadwrs_omxil_core-134d5f74e45d796b48419dd9b4bd93d0d2ee25a2.tar.gz
Fixed the incorrect stride and slice height settings of OMX video port.
am: 29279a6 * commit '29279a60efae18de2329437e127d47a27a48c2da': Fixed the incorrect stride and slice height settings of OMX video port. Change-Id: I9d43bfbbb7daf80c0b5b2cc2c8c1f430be041ddf
-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;
}