diff options
Diffstat (limited to 'base/src/componentbase.cpp')
-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; |