Ignore:
Timestamp:
27 Jan 2016, 19:19:24 (8 years ago)
Author:
seregin
Message:

move temporal layer conditions to conformance bitstream checks to match the spec, it also solves segmentation fault from the ticket #94

File:
1 edited

Legend:

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

    r1515 r1522  
    16061606      Int   numRefLayerPics = 0;
    16071607      Int   i = 0;
    1608       Int   refLayerPicIdc  [MAX_VPS_LAYER_IDX_PLUS1];
     1608      Int   refLayerPicIdc[MAX_VPS_LAYER_IDX_PLUS1];
    16091609      for(i = 0, numRefLayerPics = 0;  i < pcSlice->getNumILRRefIdx(); i++ )
    16101610      {
    16111611        if( ( vps->getMaxTidIlRefPicsPlus1(vps->getLayerIdxInVps(i), pcSlice->getLayerIdx()) > pcSlice->getTLayer() || pcSlice->getTLayer()==0 ) &&
    1612               vps->getMaxTSLayersMinus1(vps->getLayerIdxInVps(i)) >=  pcSlice->getTLayer() )
    1613         {         
     1612              vps->getMaxTSLayersMinus1(vps->getLayerIdxInVps(i)) >= pcSlice->getTLayer() )
     1613        {
    16141614          refLayerPicIdc[ numRefLayerPics++ ] = i;
    16151615        }
Note: See TracChangeset for help on using the changeset viewer.