aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTianmi Chen <tianmi.chen@intel.com>2014-05-14 14:58:19 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:03:43 -0700
commitb8964d8a892a8f105ac047d9a4d56300cf35d8c2 (patch)
tree4a57bdc559e5bbc45676a5a4975b986d4d643586
parentbc093e3ecfb9386e27a1501188176966a2f609b1 (diff)
downloadwrs_omxil_core-b8964d8a892a8f105ac047d9a4d56300cf35d8c2.tar.gz
wrs_omxil_core: set stride and sliceHeight in port definition
BZ: 196039 set stride and sliceHeight in port definition. Change-Id: I83690471557471d66f7ef316d2bb7ee426aeae54 Signed-off-by: Tianmi Chen <tianmi.chen@intel.com>
-rw-r--r--base/src/portbase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/src/portbase.cpp b/base/src/portbase.cpp
index 7016f6c..4b33ed3 100644
--- a/base/src/portbase.cpp
+++ b/base/src/portbase.cpp
@@ -267,6 +267,9 @@ OMX_ERRORTYPE PortBase::SetPortDefinition(
if (overwrite_readonly) {
format->nStride = pformat->nStride;
format->nSliceHeight = pformat->nSliceHeight;
+ } else {
+ format->nStride = pformat->nFrameWidth;
+ format->nSliceHeight = pformat->nFrameHeight;
}
break;