Skip to content

Commit

Permalink
[VP] Fix converity issue by legacy code changed
Browse files Browse the repository at this point in the history
Fix converity issue by legacy code changed.
  • Loading branch information
Alex1Zhang authored and intel-mediadev committed Apr 23, 2024
1 parent db0e289 commit 347ade6
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1944,8 +1944,11 @@ bool CompositeState::AddCompTarget(
PVPHAL_COMPOSITE_PARAMS pComposite,
PVPHAL_SURFACE pTarget)
{
bool bResult;

bool bResult = false;
if (nullptr == pTarget)
{
return bResult;
}
// Set render target
pComposite->Target[0] = *pTarget;

Expand Down

0 comments on commit 347ade6

Please sign in to comment.