Skip to content

Commit

Permalink
[VP] coverity clean (#5928)
Browse files Browse the repository at this point in the history
vp covertity clean

Co-authored-by: wenni bao <[email protected]>
  • Loading branch information
gfxVPLsdm and wennibao authored Oct 27, 2023
1 parent 16a08bf commit 1f724a1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions _studio/mfx_lib/shared/src/libmfxsw_vpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<SurfaceCache> scoped_cache_ptr(SurfaceCache::Create(*base_core_vpl, memory_type, frame_info));

using cache_controller = surface_cache_controller<SurfaceCache>;
using TCachePtr = std::remove_reference<decltype(pCache)>::type;

pCache = TCachePtr(new cache_controller(scoped_cache_ptr.get(), ComponentType::VPP, pool_type), std::default_delete<cache_controller>());

scoped_cache_ptr.release();
pCache = TCachePtr(new cache_controller(scoped_cache_ptr.release(), ComponentType::VPP, pool_type), std::default_delete<cache_controller>());
}

// Setup cache limits
Expand Down

0 comments on commit 1f724a1

Please sign in to comment.