Changeset 294 in SHVCSoftware


Ignore:
Timestamp:
19 Jun 2013, 02:16:33 (12 years ago)
Author:
seregin
Message:

adjust the reference layers check

File:
1 edited

Legend:

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

    r292 r294  
    21262126    for(Int i = 0; i < m_acLayerCfg[layer].m_numActiveRefLayers; i++)
    21272127    {
    2128       xConfirmPara(m_acLayerCfg[layer].m_predLayerIds[i] > numDirectRefLayers, "Cannot reference higher layers");
     2128      xConfirmPara(m_acLayerCfg[layer].m_predLayerIds[i] >= numDirectRefLayers, "Cannot reference higher layers");
    21292129    }
    21302130#else
     
    21322132    for(Int i = 0; i < m_acLayerCfg[layer].m_numActiveRefLayers; i++)
    21332133    {
    2134       xConfirmPara(m_acLayerCfg[layer].m_predLayerIds[i] > m_acLayerCfg[layer].m_numDirectRefLayers, "Cannot reference higher layers");
     2134      xConfirmPara(m_acLayerCfg[layer].m_predLayerIds[i] >= m_acLayerCfg[layer].m_numDirectRefLayers, "Cannot reference higher layers");
    21352135    }
    21362136#endif
Note: See TracChangeset for help on using the changeset viewer.