mirror of
https://github.com/followmsi/android_hardware_qcom_media.git
synced 2024-10-31 22:47:35 +00:00
mm-video-v4l2: venc: Avoid buffer access after free am: b701fb182b
am: 6533d3dd97
am: 2d39f9e2b0
am: 9086e5116a
am: 2684efbc38
am: 03fdd22ce8
Change-Id: I28381d44a361fdf8748f497082c2da822fb09b7b
This commit is contained in:
commit
1991311b39
1 changed files with 0 additions and 2 deletions
|
@ -2669,7 +2669,6 @@ OMX_ERRORTYPE omx_video::use_output_buffer(
|
||||||
return OMX_ErrorBadParameter;
|
return OMX_ErrorBadParameter;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto_lock l(m_buf_lock);
|
|
||||||
if (!m_out_mem_ptr) {
|
if (!m_out_mem_ptr) {
|
||||||
output_use_buffer = true;
|
output_use_buffer = true;
|
||||||
int nBufHdrSize = 0;
|
int nBufHdrSize = 0;
|
||||||
|
@ -3603,7 +3602,6 @@ OMX_ERRORTYPE omx_video::free_buffer(OMX_IN OMX_HANDLETYPE hComp,
|
||||||
nPortIndex, (unsigned int)m_sOutPortDef.nBufferCountActual);
|
nPortIndex, (unsigned int)m_sOutPortDef.nBufferCountActual);
|
||||||
if (nPortIndex < m_sOutPortDef.nBufferCountActual &&
|
if (nPortIndex < m_sOutPortDef.nBufferCountActual &&
|
||||||
BITMASK_PRESENT(&m_out_bm_count, nPortIndex)) {
|
BITMASK_PRESENT(&m_out_bm_count, nPortIndex)) {
|
||||||
auto_lock l(m_buf_lock);
|
|
||||||
// Clear the bit associated with it.
|
// Clear the bit associated with it.
|
||||||
BITMASK_CLEAR(&m_out_bm_count,nPortIndex);
|
BITMASK_CLEAR(&m_out_bm_count,nPortIndex);
|
||||||
m_sOutPortDef.bPopulated = OMX_FALSE;
|
m_sOutPortDef.bPopulated = OMX_FALSE;
|
||||||
|
|
Loading…
Reference in a new issue