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


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

support simulcast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.cpp

    r1057 r1062  
    142142  {
    143143    Int layerIdx = slice->getLayerId();
    144     UInt prevLayerIdx = m_ppcTEncTop[layerIdx]->getPredLayerIdx( m_ppcTEncTop[layerIdx]->getNumActiveRefLayers() - 1);
    145 
     144    UInt prevLayerIdx = 0;
     145    if (m_ppcTEncTop[layerIdx]->getNumActiveRefLayers() > 0)
     146    {
     147      prevLayerIdx = m_ppcTEncTop[layerIdx]->getPredLayerIdx( m_ppcTEncTop[layerIdx]->getNumActiveRefLayers() - 1);
     148    }
    146149    Double gamma = xCalEnhLambdaFactor( m_ppcTEncTop[prevLayerIdx]->getQP() - m_ppcTEncTop[layerIdx]->getQP() ,
    147150      1.0 * m_ppcTEncTop[layerIdx]->getSourceWidth() * m_ppcTEncTop[layerIdx]->getSourceHeight()
Note: See TracChangeset for help on using the changeset viewer.