diff options
author | gji2 <guoliang.ji@intel.com> | 2014-06-11 04:24:03 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:03:44 -0700 |
commit | 0ceca291410b2b389066f7c40161c6abe2f19ce1 (patch) | |
tree | 33e09f52412bd0f71295d6a0438963e9bfb6d3ea | |
parent | 11edd8693709808ef6b89b3f58970ea64bf95486 (diff) | |
download | wrs_omxil_core-0ceca291410b2b389066f7c40161c6abe2f19ce1.tar.gz |
resolution limit setting, max 1920x 1088
BZ: 200960
resolution limit setting, max 1920x 1088
Change-Id: Ia155509fd76a6f77f25396f52baa6502641cd5d6
Signed-off-by: gji2 <guoliang.ji@intel.com>
-rw-r--r-- | base/src/componentbase.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/src/componentbase.cpp b/base/src/componentbase.cpp index a1e861f..aab3995 100644 --- a/base/src/componentbase.cpp +++ b/base/src/componentbase.cpp @@ -577,6 +577,9 @@ OMX_ERRORTYPE ComponentBase::CBaseSetParameter( return OMX_ErrorIncorrectStateOperation; } + if (p->format.video.nFrameWidth > 1920 || p->format.video.nFrameHeight > 1088) + return OMX_ErrorUnsupportedSetting; + if (index == 1 && mEnableAdaptivePlayback == OMX_TRUE) { if (p->format.video.nFrameWidth < mMaxFrameWidth) p->format.video.nFrameWidth = mMaxFrameWidth; |