Changeset 1596 in SHVCSoftware for branches


Ignore:
Timestamp:
10 Feb 2017, 20:02:49 (8 years ago)
Author:
seregin
Message:

fix the problem with config parameter parsing, reported by Ramin Ghaznavi Youvalari <ramin.ghaznavi@…>

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

Legend:

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

    r1572 r1596  
    17341734
    17351735#if SVC_EXTENSION
     1736  assert( m_numLayers <= MAX_LAYERS );
     1737
    17361738#if AVC_BASE
    17371739  if( m_nonHEVCBaseLayerFlag )
  • branches/SHM-dev/source/Lib/TAppCommon/program_options_lite.h

    r1549 r1596  
    236236        std::string cDescriptionBuffer;
    237237
    238         cNameBuffer       .resize( name.size() + 10 );
    239         cDescriptionBuffer.resize( desc.size() + 10 );
    240 
    241238        for ( unsigned int uiK = 0; uiK < uiMaxNum; uiK++ )
    242239        {
     240          // it needs to be reset when extra digit is added, e.g. number 10 and above
     241          cNameBuffer       .resize( name.size() + 10 );
     242          cDescriptionBuffer.resize( desc.size() + 10 );
     243
    243244          // isn't there are sprintf function for string??
    244245          sprintf((char*) cNameBuffer.c_str()       ,name.c_str(),uiK,uiK);
     
    264265        std::string cDescriptionBuffer;
    265266
    266         cNameBuffer       .resize( name.size() + 10 );
    267         cDescriptionBuffer.resize( desc.size() + 10 );
    268 
    269267        for ( unsigned int uiK = 0; uiK < uiMaxNum; uiK++ )
    270268        {
     269          // it needs to be reset when extra digit is added, e.g. number 10 and above
     270          cNameBuffer       .resize( name.size() + 10 );
     271          cDescriptionBuffer.resize( desc.size() + 10 );
     272
    271273          // isn't there are sprintf function for string??
    272274          sprintf((char*) cNameBuffer.c_str()       ,name.c_str(),uiK,uiK);
Note: See TracChangeset for help on using the changeset viewer.