diff options
author | Tianmi Chen <tianmi.chen@intel.com> | 2014-05-14 14:58:19 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:03:43 -0700 |
commit | b8964d8a892a8f105ac047d9a4d56300cf35d8c2 (patch) | |
tree | 4a57bdc559e5bbc45676a5a4975b986d4d643586 /base/src/portbase.cpp | |
parent | bc093e3ecfb9386e27a1501188176966a2f609b1 (diff) | |
download | wrs_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>
Diffstat (limited to 'base/src/portbase.cpp')
-rw-r--r-- | base/src/portbase.cpp | 3 |
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; |