diff --git a/source/Lib/DecoderLib/VLCReader.cpp b/source/Lib/DecoderLib/VLCReader.cpp index 7766f6052e6fe079385655c49bf030761948af0c..40b9a733a2a7eaf282a17f1c6ea130db4a74b440 100644 --- a/source/Lib/DecoderLib/VLCReader.cpp +++ b/source/Lib/DecoderLib/VLCReader.cpp @@ -1180,6 +1180,15 @@ void HLSyntaxReader::parseSPS(SPS* pcSPS) pcSPS->setLoopFilterAcrossSubpicEnabledFlag(picIdx, uiCode); } } + else + { + pcSPS->setNumSubPics(1); + pcSPS->setSubPicCtuTopLeftX(0, 0); + pcSPS->setSubPicCtuTopLeftY(0, 0); + pcSPS->setSubPicWidth(0, (pcSPS->getMaxPicWidthInLumaSamples() + pcSPS->getCTUSize() - 1) >> floorLog2(pcSPS->getCTUSize())); + pcSPS->setSubPicHeight(0, (pcSPS->getMaxPicHeightInLumaSamples() + pcSPS->getCTUSize() - 1) >> floorLog2(pcSPS->getCTUSize())); + } + READ_FLAG(uiCode, "sps_subpic_id_present_flag"); pcSPS->setSubPicIdPresentFlag( uiCode != 0 ); if( pcSPS->getSubPicIdPresentFlag() ) {