Ignore:
Timestamp:
11 Aug 2014, 23:24:03 (10 years ago)
Author:
qualcomm
Message:

Bugfix and fix to compiler warnings in CRI SEI patch.

From: Adarsh K. Ramasubramonian <aramasub@…>

File:
1 edited

Legend:

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

    r859 r860  
    228228    }
    229229
     230    Int tempCode;
    230231    retval = fscanf( fic, "%d", &m_colourRemapSEIId );
    231     retval = fscanf( fic, "%d", &m_colourRemapSEICancelFlag );
     232    retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEICancelFlag = tempCode ? 1 : 0;
    232233    if( !m_colourRemapSEICancelFlag )
    233234    {
    234       retval = fscanf( fic, "%d", &m_colourRemapSEIPersistenceFlag );
    235       retval = fscanf( fic, "%d", &m_colourRemapSEIVideoSignalTypePresentFlag);
     235      retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEIPersistenceFlag = tempCode ? 1 : 0;
     236      retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEIVideoSignalTypePresentFlag = tempCode ? 1 : 0;
    236237      if( m_colourRemapSEIVideoSignalTypePresentFlag )
    237238      {
    238         retval = fscanf( fic, "%d", &m_colourRemapSEIVideoFullRangeFlag  );
     239        retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEIVideoFullRangeFlag = tempCode ? 1 : 0;
    239240        retval = fscanf( fic, "%d", &m_colourRemapSEIPrimaries );
    240241        retval = fscanf( fic, "%d", &m_colourRemapSEITransferCharacteristics );
     
    260261      }
    261262
    262       retval = fscanf( fic, "%d", &m_colourRemapSEIMatrixPresentFlag );
     263      retval = fscanf( fic, "%d", &tempCode );m_colourRemapSEIMatrixPresentFlag = tempCode ? 1 : 0;
    263264      if( m_colourRemapSEIMatrixPresentFlag )
    264265      {
Note: See TracChangeset for help on using the changeset viewer.