Skip to content

Commit

Permalink
[Encode] Fix memory leak when HME is disabled by reg key
Browse files Browse the repository at this point in the history
Fix memory leak when HME is disabled by reg key

Change-Id: I355663d041928eb985f0bd8f8f48e28913d2d219
  • Loading branch information
alexsi authored and intel-mediadev committed Mar 21, 2019
1 parent e801bff commit 1fa89df
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,10 @@ MOS_STATUS CodechalVdencAvcState::Initialize(CodechalSetting * settings)
// common function for all codecs needed
if (m_cscDsState && CodecHalUsesRenderEngine(m_codecFunction, m_standard))
{
CODECHAL_ENCODE_CHK_STATUS_RETURN(InitKernelStateMe());
if (m_hmeSupported)
{
CODECHAL_ENCODE_CHK_STATUS_RETURN(InitKernelStateMe());
}

if (m_staticFrameDetectionEnable)
{
Expand Down

0 comments on commit 1fa89df

Please sign in to comment.