diff options
author | Austin Hu <austin.hu@intel.com> | 2016-06-02 20:46:04 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-06-02 20:46:04 +0000 |
commit | 43d6cbfdbb6546bb173524727ee42579272e4c76 (patch) | |
tree | 1c5ce068b0f8953ea16cf2cfbff9477added2e5a | |
parent | 2a32ddd5b90deaefcc96a60285fe57dcdef79d12 (diff) | |
parent | 5d9e7f95b8dbe10a6ed91dcb74a4bf417da13851 (diff) | |
download | utils-43d6cbfdbb6546bb173524727ee42579272e4c76.tar.gz |
ISV: fixed the crashing issue when playing VP9 clips via ExoPlayer.
am: 5d9e7f95b8
* commit '5d9e7f95b8dbe10a6ed91dcb74a4bf417da13851':
ISV: fixed the crashing issue when playing VP9 clips via ExoPlayer.
Change-Id: Id6b62424b5f16a06a5ad29dc40bd509d898d36cd
-rw-r--r-- | ISV/omx/isv_omxcomponent.cpp | 3 |
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); |