aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorywan171 <yi.a.wang@intel.com>2014-10-21 16:32:48 +0800
committerPat Tjin <pattjin@google.com>2014-10-21 16:50:38 +0000
commitaba5931866f6b482539b82cb42ab108d291bba57 (patch)
tree45e83733e66f10c1a0bb6fc84885d7493efd6a59
parent3f7ceee13aa17ae32d4263aed2ce67eb9a37c58b (diff)
downloadwrs_omxil_core-aba5931866f6b482539b82cb42ab108d291bba57.tar.gz
vp9 decoder plugin can not reallocate gralloc buffer in the middle if the buffer is not big enough during adaptive playback, we must make sure it at start Bug: 18023655 Change-Id: Ifdfa624403739837f4350e12e38ab39b3c17e029 Signed-off-by: ywan171 <yi.a.wang@intel.com>
-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;