Skip to content

Commit

Permalink
[Decode] Fix decode coverity issue
Browse files Browse the repository at this point in the history
check status return to enhance roubustness.
  • Loading branch information
shawnli2 authored and intel-mediadev committed Dec 17, 2024
1 parent 585993d commit a943748
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ MOS_STATUS DecodeScalabilityMultiPipe::SendAttrWithFrameTracking(
{
PMOS_RESOURCE resource = nullptr;
uint32_t offset = 0;
m_statusReport->GetAddress(decode::statusReportGlobalCount, resource, offset);
SCALABILITY_CHK_STATUS_RETURN(m_statusReport->GetAddress(decode::statusReportGlobalCount, resource, offset));

cmdBuffer.Attributes.bEnableMediaFrameTracking = true;
cmdBuffer.Attributes.resMediaFrameTrackingSurface = resource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ MOS_STATUS DecodeScalabilitySinglePipe::SendAttrWithFrameTracking(
{
PMOS_RESOURCE resource = nullptr;
uint32_t offset = 0;
m_statusReport->GetAddress(decode::statusReportGlobalCount, resource, offset);
SCALABILITY_CHK_STATUS_RETURN(m_statusReport->GetAddress(decode::statusReportGlobalCount, resource, offset));

cmdBuffer.Attributes.bEnableMediaFrameTracking = true;
cmdBuffer.Attributes.resMediaFrameTrackingSurface = resource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ MOS_STATUS DecodeScalabilityMultiPipeNext::SendAttrWithFrameTracking(
{
PMOS_RESOURCE resource = nullptr;
uint32_t offset = 0;
m_statusReport->GetAddress(decode::statusReportGlobalCount, resource, offset);
SCALABILITY_CHK_STATUS_RETURN(m_statusReport->GetAddress(decode::statusReportGlobalCount, resource, offset));

cmdBuffer.Attributes.bEnableMediaFrameTracking = true;
cmdBuffer.Attributes.resMediaFrameTrackingSurface = resource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ MOS_STATUS DecodeScalabilitySinglePipeNext::SendAttrWithFrameTracking(
{
PMOS_RESOURCE resource = nullptr;
uint32_t offset = 0;
m_statusReport->GetAddress(decode::statusReportGlobalCount, resource, offset);
SCALABILITY_CHK_STATUS_RETURN(m_statusReport->GetAddress(decode::statusReportGlobalCount, resource, offset));

cmdBuffer.Attributes.bEnableMediaFrameTracking = true;
cmdBuffer.Attributes.resMediaFrameTrackingSurface = resource;
Expand Down

0 comments on commit a943748

Please sign in to comment.