summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hu <austin.hu@intel.com>2016-05-24 11:38:52 +0800
committerNick Desaulniers <ndesaulniers@google.com>2016-06-02 10:21:05 -0700
commit5d9e7f95b8dbe10a6ed91dcb74a4bf417da13851 (patch)
treec30e9d25eff9abbc4f8d8ce0ed8bfe64558059ad
parentaeb7b876641a50941ccd4ce270aa20a97f4d8420 (diff)
downloadutils-5d9e7f95b8dbe10a6ed91dcb74a4bf417da13851.tar.gz
ISV: fixed the crashing issue when playing VP9 clips via ExoPlayer.
Bug: 27589011 Bug: IMINAN-49451 It was due to the introduced Intel YV12 format. Change-Id: Ia572f5302d0cc77bed3395c64c26cb81ac3a736a Signed-off-by: Austin Hu <austin.hu@intel.com>
-rw-r--r--ISV/omx/isv_omxcomponent.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ISV/omx/isv_omxcomponent.cpp b/ISV/omx/isv_omxcomponent.cpp
index 7b2c755..6d84b52 100644
--- a/ISV/omx/isv_omxcomponent.cpp
+++ b/ISV/omx/isv_omxcomponent.cpp
@@ -265,7 +265,8 @@ OMX_ERRORTYPE ISVComponent::ISV_GetParameter(
//FIXME: THIS IS A HACK!! Request NV12 buffer for YV12 format
//because VSP only support NV12 output
OMX_VIDEO_PORTDEFINITIONTYPE *video_def = &def->format.video;
- if (video_def->eColorFormat == VA_FOURCC_YV12) {
+ if ((video_def->eColorFormat == VA_FOURCC_YV12) ||
+ (video_def->eColorFormat == HAL_PIXEL_FORMAT_INTEL_YV12)) {
//FIXME workaround Disable ISV for YV12 input
mVPPEnabled = false;
ALOGI("%s: Disable ISV for YV12 input. mVPPEnabled %d", __func__, mVPPEnabled);