Skip to content

Commit

Permalink
fix null check (#5913)
Browse files Browse the repository at this point in the history
Co-authored-by: caij <[email protected]>
  • Loading branch information
gfxVPLsdm and Dylan-debug authored Oct 24, 2023
1 parent a694f72 commit c6038f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions _studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,6 @@ mfxStatus TaskManager::FillTask(

if( m_mode30i60p.IsEnabled() )
{
MFX_CHECK_NULL_PTR1(pInSurface);
FillTask_Mode30i60p(
pTask,
pInSurface,
Expand All @@ -1636,7 +1635,6 @@ mfxStatus TaskManager::FillTask(
}
else if(pTask->bAdvGfxEnable)
{
MFX_CHECK_NULL_PTR1(pInSurface);
FillTask_AdvGfxMode(
pTask,
pInSurface,
Expand All @@ -1661,7 +1659,7 @@ mfxStatus TaskManager::FillTask(
}

m_actualNumber += 1; // make sense for simple mode only

MFX_CHECK_NULL_PTR1(pTask->input.pSurf);
mfxStatus sts = m_core->IncreaseReference(*pTask->input.pSurf);
MFX_CHECK_STS(sts);

Expand Down Expand Up @@ -2803,7 +2801,7 @@ mfxStatus VideoVPPHW::Init(
}

// create "Default" MCTF settings.
IntMctfParams MctfConfig;
IntMctfParams MctfConfig = {};
CMC::QueryDefaultParams(&MctfConfig);

// create default MCTF control
Expand Down

0 comments on commit c6038f6

Please sign in to comment.