Changeset 635 in SHVCSoftware for branches/SHM-5.1-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
17 Mar 2014, 22:45:53 (12 years ago)
Author:
seregin
Message:

fix compiler warnings, reported by J. Chen

File:
1 edited

Legend:

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

    r633 r635  
    20272027      READ_UVLC( uiCode, "vps_num_bsp_hrd_parameters_minus1" ); vps->setVpsNumBspHrdParametersMinus1(uiCode);
    20282028      vps->createBspHrdParamBuffer(vps->getVpsNumBspHrdParametersMinus1() + 1);
    2029       for (UInt i = 0; i <= vps->getVpsNumBspHrdParametersMinus1(); i++)
    2030       {
    2031         if (i > 0)
     2029      for( i = 0; i <= vps->getVpsNumBspHrdParametersMinus1(); i++ )
     2030      {
     2031        if( i > 0 )
    20322032        {
    20332033          READ_FLAG( uiCode, "bsp_cprms_present_flag[i]" ); vps->setBspCprmsPresentFlag(i, uiCode);
     
    20352035        parseHrdParameters(vps->getBspHrd(i), i==0 ? 1 : vps->getBspCprmsPresentFlag(i), vps->getMaxTLayers()-1);
    20362036      }
    2037       for (UInt h = 1; h <= (vps->getNumLayerSets()-1); h++)
     2037      for( UInt h = 1; h <= (vps->getNumLayerSets()-1); h++ )
    20382038      {
    20392039        READ_UVLC( uiCode, "num_bitstream_partitions[i]"); vps->setNumBitstreamPartitions(h, uiCode);
    2040         for (UInt i = 0; i < vps->getNumBitstreamPartitions(h); i++)
    2041         {
    2042           for (UInt j = 0; j <= (vps->getMaxLayers()-1); j++)
     2040        for( i = 0; i < vps->getNumBitstreamPartitions(h); i++ )
     2041        {
     2042          for( j = 0; j <= (vps->getMaxLayers()-1); j++ )
    20432043          {
    2044             if (vps->getLayerIdIncludedFlag(h, j))
     2044            if( vps->getLayerIdIncludedFlag(h, j) )
    20452045            {
    20462046              READ_FLAG( uiCode, "layer_in_bsp_flag[h][i][j]" ); vps->setLayerInBspFlag(h, i, j, uiCode);
     
    20512051        {
    20522052          READ_UVLC( uiCode, "num_bsp_sched_combinations[h]"); vps->setNumBspSchedCombinations(h, uiCode);
    2053           for (UInt i = 0; i < vps->getNumBspSchedCombinations(h); i++)
     2053          for( i = 0; i < vps->getNumBspSchedCombinations(h); i++ )
    20542054          {
    2055             for (UInt j = 0; j < vps->getNumBitstreamPartitions(h); j++)
     2055            for( j = 0; j < vps->getNumBitstreamPartitions(h); j++ )
    20562056            {
    20572057              READ_UVLC( uiCode, "bsp_comb_hrd_idx[h][i][j]"); vps->setBspCombHrdIdx(h, i, j, uiCode);
Note: See TracChangeset for help on using the changeset viewer.