Changeset 1058 in SHVCSoftware for branches/SHM-dev/source


Ignore:
Timestamp:
4 Mar 2015, 22:28:38 (10 years ago)
Author:
interdigital
Message:

support simulcast when NumActiveRefLayers is 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1057 r1058  
    354354    if(layer)
    355355    {
    356       UInt prevLayerIdx = m_acLayerCfg[layer].getPredLayerIdx(m_acLayerCfg[layer].getNumActiveRefLayers() - 1);
    357       UInt prevLayerId  = m_acTEncTop[layer].getRefLayerId(prevLayerIdx);
    358 
     356      UInt prevLayerIdx = 0;
     357      UInt prevLayerId  = 0;
     358      if (m_acLayerCfg[layer].getNumActiveRefLayers() > 0)
     359      {
     360        prevLayerIdx = m_acLayerCfg[layer].getPredLayerIdx(m_acLayerCfg[layer].getNumActiveRefLayers() - 1);
     361        prevLayerId  = m_acTEncTop[layer].getRefLayerId(prevLayerIdx);
     362      }
    359363      for(Int i = 0; i < MAX_VPS_LAYER_IDX_PLUS1; i++)
    360364      {
Note: See TracChangeset for help on using the changeset viewer.