aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/src/componentbase.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/base/src/componentbase.cpp b/base/src/componentbase.cpp
index 10db2c8..56ce5ed 100644
--- a/base/src/componentbase.cpp
+++ b/base/src/componentbase.cpp
@@ -651,6 +651,15 @@ OMX_ERRORTYPE ComponentBase::CBaseSetParameter(
kMaxAdaptiveStreamingWidth, kMaxAdaptiveStreamingHeight);
return OMX_ErrorBadParameter;
}
+
+ if (GetWorkingRole() != NULL &&
+ !strcmp (GetWorkingRole(),"video_decoder.vp9")) {
+ if (p->nMaxFrameWidth < 640 && p->nMaxFrameHeight < 480) {
+ p->nMaxFrameHeight = kMaxAdaptiveStreamingHeight;
+ p->nMaxFrameWidth = kMaxAdaptiveStreamingWidth;
+ }
+ }
+
mEnableAdaptivePlayback = p->bEnable;
if (mEnableAdaptivePlayback != OMX_TRUE)
return OMX_ErrorBadParameter;