Skip to content

Commit

Permalink
[Decode] Fix some VPL coverity issue (#6124)
Browse files Browse the repository at this point in the history
Fix dead code issue
Fix sign extension issue
Fix unused value issue

Co-authored-by: XuanJessica <[email protected]>
  • Loading branch information
gfxVPLsdm and XuanJessica authored Nov 28, 2023
1 parent 3758f77 commit 8869ba8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions _studio/mfx_lib/decode/vc1/src/mfx_vc1_decode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ static void SetFrameType(const uint32_t type, mfxFrameSurface1 &surface)
case VC1_BI_FRAME:
extFrameInfo->FrameType = MFX_FRAMETYPE_B;
break;
default:// unexpected type
extFrameInfo->FrameType = MFX_FRAMETYPE_UNKNOWN;
assert(0);
}
}

Expand Down
2 changes: 1 addition & 1 deletion _studio/shared/umc/codec/av1_dec/src/umc_av1_bitstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ namespace UMC_AV1_DECODER
{
if (BytesLeft() <= 0)
throw av1_exception(UMC::UMC_ERR_INVALID_STREAM);
t += (*m_pbs++) << (i * (uint32_t)8);
t += (uint32_t)((*m_pbs++) << (i * 8));
}

return t;
Expand Down

0 comments on commit 8869ba8

Please sign in to comment.