diff options
author | Deva Ramasubramanian <dramasub@codeaurora.org> | 2013-07-23 18:52:24 -0700 |
---|---|---|
committer | Ethan Chen <intervigil@gmail.com> | 2016-11-20 21:19:13 -0800 |
commit | a211c6f375b2f37d9e614e32148c2c4166132017 (patch) | |
tree | d101e46eaaf5cb328b03cdf7a0af50c9a91c5d59 | |
parent | b06563e4f4bdf10001eaf653d6df893c0950ada5 (diff) | |
download | android_hardware_qcom_media-cm-14.0.tar.gz android_hardware_qcom_media-cm-14.0.tar.bz2 android_hardware_qcom_media-cm-14.0.zip |
mm-video: vidc: Remove hardcoding of BufCountActualcm-14.0
When metabuffer mode is set, we're harcoding the nBufCountActual to 4.
In most cases we get away with it, except in cases where nBufCountMin
happens to be higher. This triggers quite a few sanity-check conditions
in the component and driver fail. Hence to avoid this situation, just
reset nBufCountActual to nBufCountMin.
Change-Id: Ib7315ed10a2ff6f4270289f9c75868de4792fb8a
-rw-r--r-- | msm8974/mm-video-legacy/vidc/venc/src/omx_video_encoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/msm8974/mm-video-legacy/vidc/venc/src/omx_video_encoder.cpp b/msm8974/mm-video-legacy/vidc/venc/src/omx_video_encoder.cpp index 8fb8f6e3..8dd637ad 100644 --- a/msm8974/mm-video-legacy/vidc/venc/src/omx_video_encoder.cpp +++ b/msm8974/mm-video-legacy/vidc/venc/src/omx_video_encoder.cpp @@ -1007,7 +1007,7 @@ OMX_ERRORTYPE omx_venc::set_parameter(OMX_IN OMX_HANDLETYPE hComp, } meta_mode_enable = pParam->bStoreMetaData; if(meta_mode_enable) { - m_sInPortDef.nBufferCountActual = 4; + m_sInPortDef.nBufferCountActual = m_sInPortDef.nBufferCountMin; if(handle->venc_set_param(&m_sInPortDef,OMX_IndexParamPortDefinition) != true) { DEBUG_PRINT_ERROR("\nERROR: venc_set_param input failed"); |