diff options
author | ywan171 <yi.a.wang@intel.com> | 2014-10-21 16:32:48 +0800 |
---|---|---|
committer | Pat Tjin <pattjin@google.com> | 2014-10-21 16:50:38 +0000 |
commit | aba5931866f6b482539b82cb42ab108d291bba57 (patch) | |
tree | 45e83733e66f10c1a0bb6fc84885d7493efd6a59 | |
parent | 3f7ceee13aa17ae32d4263aed2ce67eb9a37c58b (diff) | |
download | wrs_omxil_core-aba5931866f6b482539b82cb42ab108d291bba57.tar.gz |
make sure the buffer is big enough when adaptive playback is enabledandroid-cts-5.0_r9android-cts-5.0_r8android-cts-5.0_r7android-cts-5.0_r6android-cts-5.0_r5android-cts-5.0_r4android-cts-5.0_r3android-5.0.2_r3android-5.0.2_r1android-5.0.1_r1android-5.0.0_r7android-5.0.0_r6android-5.0.0_r5.1android-5.0.0_r5android-5.0.0_r4android-5.0.0_r3android-5.0.0_r2android-5.0.0_r1lollipop-releaselollipop-cts-release
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.cpp | 9 |
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; |