Changeset 167 in SHVCSoftware for branches/SHM-2.0-dev


Ignore:
Timestamp:
9 May 2013, 00:25:37 (12 years ago)
Author:
seregin
Message:

explicit type casting

File:
1 edited

Legend:

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

    r165 r167  
    978978    if( i > (vps->getNumLayerSets() - 1) )
    979979    {
    980       Int numBits = std::max(1.0, ceil( log((double)vps->getNumLayerSets() - 1) / log(2.0) ));
     980      Int numBits = (Int)std::max(1.0, ceil( log((double)vps->getNumLayerSets() - 1) / log(2.0) ));
    981981      READ_CODE( numBits, uiCode, "output_layer_set_idx_minus1");   vps->setOutputLayerSetIdx( i, uiCode + 1);
    982982      Int lsIdx = vps->getOutputLayerSetIdx(i);
     
    10061006      }
    10071007    }
    1008     Int numBits = std::max(1.0, ceil( log((double)vps->getNumProfileTierLevel()) / log(2.0) ));
     1008    Int numBits = (Int)std::max(1.0, ceil( log((double)vps->getNumProfileTierLevel()) / log(2.0) ));
    10091009    READ_CODE( numBits, uiCode, "profile_level_tier_idx[i]" );     vps->setProfileLevelTierIdx(i, uiCode);
    10101010  }
Note: See TracChangeset for help on using the changeset viewer.