Commit 51613562 authored by Xiang Li's avatar Xiang Li
Browse files

Merge branch 'fixsei' into 'master'

Fix call to initSEIScalableNesting

See merge request jvet/VVCSoftware_VTM!2027
parents 6f3ee00b a4b6ad8b
......@@ -1081,7 +1081,9 @@ void SubpicMergeApp::generateMergedPic(ParameterSetManager &psManager, bool mixe
std::vector<int> targetLayers = { (int)subpic.nalus[0].m_nuhLayerId };
SEIScalableNesting *nestingSEI = new SEIScalableNesting();
seiEncoder.init(0, 0, 0);
seiEncoder.initSEIScalableNesting(nestingSEI, nestedSEI, targetOLS, targetLayers, subPicIds);
const uint16_t maxSubpicIdInPic =
subPicIds.size() == 0 ? 0 : *std::max_element(subPicIds.begin(), subPicIds.end());
seiEncoder.initSEIScalableNesting(nestingSEI, nestedSEI, targetOLS, targetLayers, subPicIds, maxSubpicIdInPic);
OutputNALUnit nalu( NAL_UNIT_SUFFIX_SEI, layerId, temporalId );
seiMessages.push_back(nestingSEI);
seiWriter.writeSEImessages(nalu.m_Bitstream, seiMessages, hrd, false, temporalId);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment