From 1f724a16efd8c511cf262321dc69c1c89fa3c5dc Mon Sep 17 00:00:00 2001 From: gfxVPLsdm Date: Fri, 27 Oct 2023 13:43:40 +0800 Subject: [PATCH] [VP] coverity clean (#5928) vp covertity clean Co-authored-by: wenni bao --- _studio/mfx_lib/shared/src/libmfxsw_vpp.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/_studio/mfx_lib/shared/src/libmfxsw_vpp.cpp b/_studio/mfx_lib/shared/src/libmfxsw_vpp.cpp index d4edc314b0..6f43f91d08 100644 --- a/_studio/mfx_lib/shared/src/libmfxsw_vpp.cpp +++ b/_studio/mfx_lib/shared/src/libmfxsw_vpp.cpp @@ -148,13 +148,10 @@ static mfxStatus SetupCache(mfxSession session, const mfxVideoParam& par) const mfxFrameInfo& frame_info = input_pool ? par.vpp.In : par.vpp.Out; std::unique_ptr scoped_cache_ptr(SurfaceCache::Create(*base_core_vpl, memory_type, frame_info)); - using cache_controller = surface_cache_controller; using TCachePtr = std::remove_reference::type; - pCache = TCachePtr(new cache_controller(scoped_cache_ptr.get(), ComponentType::VPP, pool_type), std::default_delete()); - - scoped_cache_ptr.release(); + pCache = TCachePtr(new cache_controller(scoped_cache_ptr.release(), ComponentType::VPP, pool_type), std::default_delete()); } // Setup cache limits