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


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

fix compiler warnings, reported by J. Chen

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r633 r635  
    15241524    {
    15251525      WRITE_UVLC( vps->getVpsNumBspHrdParametersMinus1(), "vps_num_bsp_hrd_parameters_minus1" );
    1526       for (UInt i = 0; i <= vps->getVpsNumBspHrdParametersMinus1(); i++)
    1527       {
    1528         if (i > 0)
     1526      for( i = 0; i <= vps->getVpsNumBspHrdParametersMinus1(); i++ )
     1527      {
     1528        if( i > 0 )
    15291529        {
    15301530          WRITE_FLAG( vps->getBspCprmsPresentFlag(i), "bsp_cprms_present_flag[i]" );
     
    15321532        codeHrdParameters(vps->getBspHrd(i), i==0 ? 1 : vps->getBspCprmsPresentFlag(i), vps->getMaxTLayers()-1);
    15331533      }
    1534       for (UInt h = 1; h <= (vps->getNumLayerSets()-1); h++)
     1534      for( UInt h = 1; h <= (vps->getNumLayerSets()-1); h++ )
    15351535      {
    15361536        WRITE_UVLC( vps->getNumBitstreamPartitions(h), "num_bitstream_partitions[i]");
    1537         for (UInt i = 0; i < vps->getNumBitstreamPartitions(h); i++)
    1538         {
    1539           for (UInt j = 0; j <= (vps->getMaxLayers()-1); j++)
     1537        for( i = 0; i < vps->getNumBitstreamPartitions(h); i++ )
     1538        {
     1539          for( j = 0; j <= (vps->getMaxLayers()-1); j++ )
    15401540          {
    15411541            if (vps->getLayerIdIncludedFlag(h, j))
     
    15481548        {
    15491549          WRITE_UVLC( vps->getNumBspSchedCombinations(h), "num_bsp_sched_combinations[h]");
    1550           for (UInt i = 0; i < vps->getNumBspSchedCombinations(h); i++)
     1550          for( i = 0; i < vps->getNumBspSchedCombinations(h); i++ )
    15511551          {
    1552             for (UInt j = 0; j < vps->getNumBitstreamPartitions(h); j++)
     1552            for( j = 0; j < vps->getNumBitstreamPartitions(h); j++ )
    15531553            {
    15541554              WRITE_UVLC( vps->getBspCombHrdIdx(h, i, j), "bsp_comb_hrd_idx[h][i][j]");
     
    22402240    if( slice->getPocMsbValPresentFlag() )
    22412241    {
    2242       Int iMaxPOClsb = 1<< slice->getSPS()->getBitsForPOC();
    2243 
    22442242      UInt lengthVal = 1;
    22452243      UInt tempVal = slice->getPocMsbVal() + 1;
  • branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r633 r635  
    17531753      if (pcSlice->getLayerId() == 0 && m_pcEncTop->getVPS()->getVpsVuiBspHrdPresentFlag())
    17541754      {
    1755         OutputNALUnit nalu(NAL_UNIT_PREFIX_SEI, 0, 1);
     1755        nalu = NALUnit(NAL_UNIT_PREFIX_SEI, 0, 1);
    17561756        m_pcEntropyCoder->setEntropyCoder(m_pcCavlcCoder, pcSlice);
    17571757        m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream);
Note: See TracChangeset for help on using the changeset viewer.