Ignore:
Timestamp:
11 Feb 2014, 23:35:35 (11 years ago)
Author:
qualcomm
Message:

Bug-fix for patch in r582 (resolution-based sub-DPB signaling)

From: Adarsh K. Ramasubramonian <aramasub@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-5.1-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r603 r611  
    11971197        // at the encoder, modify below
    11981198        Int oldValue = vps->getMaxVpsDecPicBufferingMinus1( i, vps->getSubDpbAssigned( layerSetIdxForOutputLayerSet, k ), j );
    1199         oldValue += vps->getMaxVpsLayerDecPicBuffMinus1( i, k, j );
     1199        oldValue += vps->getMaxVpsLayerDecPicBuffMinus1( i, k, j ) + 1;
    12001200        vps->setMaxVpsDecPicBufferingMinus1( i, vps->getSubDpbAssigned( layerSetIdxForOutputLayerSet, k ), j, oldValue );
    12011201#else
     
    12041204        maxNumReorderPics       = std::max( maxNumReorderPics, m_acTEncTop[layerId].getNumReorderPics(j));
    12051205      }
     1206#if RESOLUTION_BASED_DPB
     1207      for(Int k = 0; k < vps->getNumSubDpbs(i); k++)
     1208      {
     1209        // Decrement m_maxVpsDecPicBufferingMinus1
     1210        Int oldValue = vps->getMaxVpsDecPicBufferingMinus1( i, vps->getSubDpbAssigned( layerSetIdxForOutputLayerSet, k ), j );
     1211        vps->setMaxVpsDecPicBufferingMinus1( i, vps->getSubDpbAssigned( layerSetIdxForOutputLayerSet, k ), j, oldValue - 1 );
     1212      }
     1213#endif
    12061214      vps->setMaxVpsNumReorderPics(i, j, maxNumReorderPics);
    12071215      vps->determineSubDpbInfoFlags();
Note: See TracChangeset for help on using the changeset viewer.