Ignore:
Timestamp:
31 May 2013, 09:48:43 (11 years ago)
Author:
seregin
Message:

use refLayerIdc for getting reference layer encoder and decoder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-2.1-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r248 r250  
    249249    {
    250250#if VPS_EXTN_DIRECT_REF_LAYERS
    251       TDecTop *pcTDecTopBase = (TDecTop *)getRefLayerDec( m_layerId );
     251      TDecTop *pcTDecTopBase = (TDecTop *)getRefLayerDec( m_layerId - 1 );
    252252#else
    253253      TDecTop *pcTDecTopBase = (TDecTop *)getLayerDec( m_layerId-1 );
     
    832832      {
    833833#if VPS_EXTN_DIRECT_REF_LAYERS
    834         TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( m_layerId );
     834        TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( m_layerId - 1 );
    835835#else
    836836        TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );
     
    12811281
    12821282#if VPS_EXTN_DIRECT_REF_LAYERS
    1283 TDecTop* TDecTop::getRefLayerDec( UInt layerId )
     1283TDecTop* TDecTop::getRefLayerDec( UInt refLayerIdc )
    12841284{
    12851285  TComVPS* vps = m_parameterSetManagerDecoder[0].getActiveVPS();
     
    12991299#endif
    13001300 
    1301   return (TDecTop *)getLayerDec( vps->getRefLayerId( m_layerId, 0 ) );
     1301  return (TDecTop *)getLayerDec( vps->getRefLayerId( m_layerId, refLayerIdc ) );
    13021302}
    13031303#endif
Note: See TracChangeset for help on using the changeset viewer.