Skip to content
Snippets Groups Projects
Commit fba3af56 authored by Biao Wang's avatar Biao Wang
Browse files

Fix #1008: reset previousSubPicIds list at the end of a picture

parent f5d838df
No related branches found
No related tags found
No related merge requests found
...@@ -1654,6 +1654,7 @@ void DecLib::xCheckParameterSetConstraints(const int layerId) ...@@ -1654,6 +1654,7 @@ void DecLib::xCheckParameterSetConstraints(const int layerId)
// store PPS ID to have sub-picture info for the next pictures when last rectangular slice in the picture is encountered // store PPS ID to have sub-picture info for the next pictures when last rectangular slice in the picture is encountered
if( slice->getSliceID() + 1 == pps->getNumSlicesInPic() ) if( slice->getSliceID() + 1 == pps->getNumSlicesInPic() )
{ {
previousSubPicIds[layerId].clear();
for( int subPicIdx = 0; subPicIdx < sps->getNumSubPics(); subPicIdx++ ) for( int subPicIdx = 0; subPicIdx < sps->getNumSubPics(); subPicIdx++ )
{ {
previousSubPicIds[layerId].push_back( pps->getSubPic( subPicIdx ).getSubPicID() ); previousSubPicIds[layerId].push_back( pps->getSubPic( subPicIdx ).getSubPicID() );
......
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