Skip to content

Commit

Permalink
[Decode] Fix nullptr check issue (#5564)
Browse files Browse the repository at this point in the history
Co-authored-by: Wang, Sudan <[email protected]>
  • Loading branch information
gfxVPLsdm and SudanInt authored Aug 4, 2023
1 parent 5f172ab commit c9b5b25
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions _studio/shared/umc/codec/av1_dec/src/umc_av1_bitstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1874,9 +1874,12 @@ namespace UMC_AV1_DECODER
{
const int OrderHintBits = sh.order_hint_bits_minus1 + 1;
fh.ref_order_hint[i] = GetBits(OrderHintBits);
FrameHeader const& refHdr = frameDpb[i]->GetFrameHeader();
if (fh.ref_order_hint[i] != refHdr.order_hint)
frameDpb[i]->SetRefValid(false);
if(frameDpb[i])
{
FrameHeader const& refHdr = frameDpb[i]->GetFrameHeader();
if (fh.ref_order_hint[i] != refHdr.order_hint)
frameDpb[i]->SetRefValid(false);
}
}
}
}
Expand Down

0 comments on commit c9b5b25

Please sign in to comment.