Skip to content
Snippets Groups Projects
Commit a39ff785 authored by Karsten Suehring's avatar Karsten Suehring
Browse files

Merge branch 'fix_deriveOutputLayerSet' into 'master'

Avoid out of bounds access in deriveOutputLayerSet

See merge request jvet/VVCSoftware_VTM!1234
parents 9ec9e112 049e7423
No related branches found
No related tags found
No related merge requests found
......@@ -282,6 +282,12 @@ uint32_t DecApp::decode()
bool DecApp::deriveOutputLayerSet()
{
int vps_max_layers_minus1 = m_cDecLib.getVPS()->getMaxLayers() - 1;
if(m_iTargetOLS == - 1 || vps_max_layers_minus1 == 0)
{
m_targetDecLayerIdSet.clear();
return true;
}
int TotalNumOlss = 0;
int each_layer_is_an_ols_flag = m_cDecLib.getVPS()->getEachLayerIsAnOlsFlag();
int ols_mode_idc = m_cDecLib.getVPS()->getOlsModeIdc();
......
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