Skip to content
Snippets Groups Projects
Commit 42cd3ca1 authored by Hendry's avatar Hendry
Browse files

FixForR0270Implementation: Considering CRA that is preceded by EOS

parent 092bf370
No related branches found
No related tags found
No related merge requests found
......@@ -173,10 +173,14 @@ uint32_t DecApp::decode()
xFlushOutput(pcListPic, nalu.m_nuhLayerId);
}
#if JVET_R0270
if (nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_TRAIL || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_STSA)
if (m_cDecLib.getFirstSliceInPicture() && nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_CRA && isEosPresentInPu)
{
// Once the picture has TRAIL or or STSA slice, no more special treatment for new CLVS picture for the rest of
// pictures until new CLVS picture is received.
// A CRA that is immediately preceded by an EOS is a CLVSS
m_newCLVS[nalu.m_nuhLayerId] = true;
}
else if (m_cDecLib.getFirstSliceInPicture() && nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_CRA && !isEosPresentInPu)
{
// A CRA that is not immediately precede by an EOS is not a CLVSS
m_newCLVS[nalu.m_nuhLayerId] = false;
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment