Ignore:
Timestamp:
21 Mar 2014, 18:27:23 (11 years ago)
Author:
seregin
Message:

fix compiler warning related to P0079_DERIVE_NUMACTIVE_REF_PICS

File:
1 edited

Legend:

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

    r636 r639  
    24512451          {
    24522452#if P0079_DERIVE_NUMACTIVE_REF_PICS
    2453             Int   numRefLayerPics = 0;
    2454             Int   i = 0;
    2455             Int   refLayerPicIdc  [MAX_VPS_LAYER_ID_PLUS1];
    2456             for(i = 0, numRefLayerPics = 0;  i < rpcSlice->getNumILRRefIdx(); i++ )
     2453            for( Int i = 0; i < rpcSlice->getNumILRRefIdx(); i++ )
    24572454            {
    24582455              if(rpcSlice->getVPS()->getMaxTidIlRefPicsPlus1(rpcSlice->getVPS()->getLayerIdInVps(i),rpcSlice->getLayerId()) >  rpcSlice->getTLayer() &&
    24592456                (rpcSlice->getVPS()->getMaxTSLayersMinus1(rpcSlice->getVPS()->getLayerIdInVps(i)) >=  rpcSlice->getTLayer()) )
    24602457              {         
    2461                 refLayerPicIdc[ numRefLayerPics++ ] = i;
     2458                rpcSlice->setActiveNumILRRefIdx(1);
     2459                break;
    24622460              }
    24632461            }
    2464             if (numRefLayerPics)
    2465               rpcSlice->setActiveNumILRRefIdx(1);
    24662462#else
    24672463            rpcSlice->setActiveNumILRRefIdx(1);
Note: See TracChangeset for help on using the changeset viewer.