Changeset 799 in SHVCSoftware


Ignore:
Timestamp:
10 Jun 2014, 14:36:46 (11 years ago)
Author:
nokia
Message:

fix out of boundary array variables for JVTVC-Q0078

Location:
branches/SHM-6-dev/source/Lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-6-dev/source/Lib/TLibCommon/TComSlice.cpp

    r798 r799  
    26662666    UInt iNuhLId = getLayerIdInNuh(i);
    26672667    UInt predIdx = 0;
    2668     for (UInt j = iNuhLId + 1; j < 63; j++)
     2668    for (UInt j = iNuhLId + 1; j < MAX_NUM_LAYER_IDS; j++)
    26692669    {
    26702670      if (getRecursiveRefLayerFlag(j, iNuhLId))
  • branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r798 r799  
    13171317        Int layerNum = 0;
    13181318        Int lsIdx = vps->getNumLayerSets() + i;
    1319         for (Int layerId = 0; layerId <= 62; layerId++)
     1319        for (Int layerId = 0; layerId < MAX_VPS_LAYER_ID_PLUS1; layerId++)
    13201320        {
    13211321          vps->setLayerIdIncludedFlag(false, lsIdx, layerId);
    1322           for (Int treeIdx = 1; treeIdx < vps->getNumIndependentLayers(); treeIdx++)
     1322        }
     1323        for (Int treeIdx = 1; treeIdx < vps->getNumIndependentLayers(); treeIdx++)
     1324        {
     1325          for (Int layerCnt = 0; layerCnt < vps->getHighestLayerIdxPlus1(i, j); layerCnt++)
    13231326          {
    1324             for (Int layerCnt = 0; layerCnt < vps->getHighestLayerIdxPlus1(i, j); layerCnt++)
    1325             {
    1326               vps->setLayerSetLayerIdList(lsIdx, layerNum, vps->getTreePartitionLayerId(treeIdx, layerCnt));
    1327               vps->setLayerIdIncludedFlag(true, lsIdx, vps->getTreePartitionLayerId(treeIdx, layerCnt));
    1328               layerNum++;
    1329             }
     1327            vps->setLayerSetLayerIdList(lsIdx, layerNum, vps->getTreePartitionLayerId(treeIdx, layerCnt));
     1328            vps->setLayerIdIncludedFlag(true, lsIdx, vps->getTreePartitionLayerId(treeIdx, layerCnt));
     1329            layerNum++;
    13301330          }
    13311331        }
Note: See TracChangeset for help on using the changeset viewer.