From c6038f63f7c92c6ac5e5674ce47258da887fbd42 Mon Sep 17 00:00:00 2001 From: gfxVPLsdm Date: Tue, 24 Oct 2023 20:51:19 +0800 Subject: [PATCH] fix null check (#5913) Co-authored-by: caij --- _studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/_studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp b/_studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp index c74c6d0248..dd51a07d84 100644 --- a/_studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp +++ b/_studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp @@ -1624,7 +1624,6 @@ mfxStatus TaskManager::FillTask( if( m_mode30i60p.IsEnabled() ) { - MFX_CHECK_NULL_PTR1(pInSurface); FillTask_Mode30i60p( pTask, pInSurface, @@ -1636,7 +1635,6 @@ mfxStatus TaskManager::FillTask( } else if(pTask->bAdvGfxEnable) { - MFX_CHECK_NULL_PTR1(pInSurface); FillTask_AdvGfxMode( pTask, pInSurface, @@ -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); @@ -2803,7 +2801,7 @@ mfxStatus VideoVPPHW::Init( } // create "Default" MCTF settings. - IntMctfParams MctfConfig; + IntMctfParams MctfConfig = {}; CMC::QueryDefaultParams(&MctfConfig); // create default MCTF control