diff options
author | Austin Hu <austin.hu@intel.com> | 2016-04-11 17:05:05 +0800 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2016-04-18 12:04:37 -0700 |
commit | 44c7c2d3b65abe47e2f67590166d9a4cacd5abf8 (patch) | |
tree | 101b8582892412c4e3ff60f654296e1d3b390407 | |
parent | 29279a60efae18de2329437e127d47a27a48c2da (diff) | |
download | wrs_omxil_core-44c7c2d3b65abe47e2f67590166d9a4cacd5abf8.tar.gz |
Revert "Fixed the incorrect stride and slice height settings of OMX video port."anougat-dev
Bug: 27688967
This reverts commit 6d724b9f6420698a740c8f3cdbbc2f2d6a803308. Because it
caused some regression for CTS android.media.cts.EncodeDecodeTest.
-rw-r--r-- | base/src/portbase.cpp | 10 |
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; } |