Skip to content
Snippets Groups Projects
Commit 4807ea62 authored by Hendry's avatar Hendry Committed by Xiang Li
Browse files

Fix Ticket #922: Decoding crash

parent a07186d9
No related branches found
No related tags found
No related merge requests found
...@@ -1484,11 +1484,6 @@ void EncLib::xInitSPS( SPS& sps, VPS& vps ) ...@@ -1484,11 +1484,6 @@ void EncLib::xInitSPS( SPS& sps, VPS& vps )
sps.getSpsRangeExtension().setPersistentRiceAdaptationEnabledFlag(m_persistentRiceAdaptationEnabledFlag); sps.getSpsRangeExtension().setPersistentRiceAdaptationEnabledFlag(m_persistentRiceAdaptationEnabledFlag);
sps.getSpsRangeExtension().setCabacBypassAlignmentEnabledFlag(m_cabacBypassAlignmentEnabledFlag); sps.getSpsRangeExtension().setCabacBypassAlignmentEnabledFlag(m_cabacBypassAlignmentEnabledFlag);
if( m_intraPeriod < 0 )
{
sps.setRPL1CopyFromRPL0Flag( true );
}
#if JVET_Q0119_CLEANUPS #if JVET_Q0119_CLEANUPS
sps.setSubPicInfoPresentFlag(m_subPicInfoPresentFlag); sps.setSubPicInfoPresentFlag(m_subPicInfoPresentFlag);
if (m_subPicInfoPresentFlag) if (m_subPicInfoPresentFlag)
...@@ -2137,6 +2132,26 @@ void EncLib::xInitRPL(SPS &sps, bool isFieldCoding) ...@@ -2137,6 +2132,26 @@ void EncLib::xInitRPL(SPS &sps, bool isFieldCoding)
} }
} }
bool isRpl1CopiedFromRpl0 = true;
for( int i = 0; isRpl1CopiedFromRpl0 && i < numRPLCandidates; i++)
{
if( sps.getRPLList0()->getReferencePictureList(i)->getNumRefEntries() == sps.getRPLList1()->getReferencePictureList(i)->getNumRefEntries() )
{
for( int j = 0; isRpl1CopiedFromRpl0 && j < sps.getRPLList0()->getReferencePictureList(i)->getNumRefEntries(); j++ )
{
if( sps.getRPLList0()->getReferencePictureList(i)->getRefPicIdentifier(j) != sps.getRPLList1()->getReferencePictureList(i)->getRefPicIdentifier(j) )
{
isRpl1CopiedFromRpl0 = false;
}
}
}
else
{
isRpl1CopiedFromRpl0 = false;
}
}
sps.setRPL1CopyFromRPL0Flag(isRpl1CopiedFromRpl0);
//Check if all delta POC of STRP in each RPL has the same sign //Check if all delta POC of STRP in each RPL has the same sign
//Check RPLL0 first //Check RPLL0 first
const RPLList* rplList0 = sps.getRPLList0(); const RPLList* rplList0 = sps.getRPLList0();
......
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