Skip to content

Commit

Permalink
[Encode] fix coverity unchecked return value
Browse files Browse the repository at this point in the history
fix coverity unchecked return value.
  • Loading branch information
DaShi-Git authored and intel-mediadev committed Jan 25, 2024
1 parent 40d8ebf commit f092b74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ MOS_STATUS CodechalEncHevcStateG12::SetGpuCtxCreatOption()

if (!MOS_VE_CTXBASEDSCHEDULING_SUPPORTED(m_osInterface))
{
CodechalEncoderState::SetGpuCtxCreatOption();
CODECHAL_ENCODE_CHK_STATUS_RETURN(CodechalEncoderState::SetGpuCtxCreatOption());
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6576,7 +6576,7 @@ MOS_STATUS CodechalVdencHevcStateG12::SetGpuCtxCreatOption()

if (!MOS_VE_CTXBASEDSCHEDULING_SUPPORTED(m_osInterface))
{
CodechalEncoderState::SetGpuCtxCreatOption();
CODECHAL_ENCODE_CHK_STATUS_RETURN(CodechalEncoderState::SetGpuCtxCreatOption());
}
else
{
Expand Down Expand Up @@ -7341,7 +7341,7 @@ MOS_STATUS CodechalVdencHevcStateG12::SetTileData(
uint32_t tileHeightInLCU = MOS_ROUNDUP_DIVIDE(((tileCodingParams[idx].TileHeightInMinCbMinus1 + 1) << (m_hevcSeqParams->log2_min_coding_block_size_minus3 + 3)), ctbSize);
uint32_t tileWidthInLCU = MOS_ROUNDUP_DIVIDE(((tileCodingParams[idx].TileWidthInMinCbMinus1 + 1) << (m_hevcSeqParams->log2_min_coding_block_size_minus3 + 3)), ctbSize);

//StreamIn data is 4 CLs per LCU
//StreamIn data is 4 Cachelines per LCU
tileCodingParams[idx].TileStreaminOffset = 4 * (tileCodingParams[idx].TileStartLCUY * streamInWidthinLCU + tileCodingParams[idx].TileStartLCUX * tileHeightInLCU);
tileCodingParams[idx].SliceSizeStreamoutOffset = tileStartLCUAddr;
tileStartLCUAddr += (tileWidthInLCU * tileHeightInLCU);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2336,7 +2336,7 @@ MOS_STATUS CodechalVdencVp9StateG12::SetGpuCtxCreatOption()

if (!MOS_VE_CTXBASEDSCHEDULING_SUPPORTED(m_osInterface))
{
CodechalEncoderState::SetGpuCtxCreatOption();
CODECHAL_ENCODE_CHK_STATUS_RETURN(CodechalEncoderState::SetGpuCtxCreatOption());
}
else
{
Expand Down

0 comments on commit f092b74

Please sign in to comment.