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/TAppEncCfg.cpp

    r859 r860  
    20842084        exit(EXIT_FAILURE);
    20852085      }
    2086 
     2086      Int tempCode;
    20872087      retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIId );
    2088       retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEICancelFlag );
     2088      retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEICancelFlag = tempCode ? 1 : 0;
    20892089      if( !m_acLayerCfg[layer].m_colourRemapSEICancelFlag )
    20902090      {
    2091         retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIPersistenceFlag );
    2092         retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIVideoSignalTypePresentFlag);
     2091        retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEIPersistenceFlag = tempCode ? 1 : 0;
     2092        retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEIVideoSignalTypePresentFlag = tempCode ? 1 : 0;
    20932093        if( m_acLayerCfg[layer].m_colourRemapSEIVideoSignalTypePresentFlag )
    20942094        {
    2095           retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIVideoFullRangeFlag  );
     2095          retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEIVideoFullRangeFlag = tempCode ? 1 : 0;
    20962096          retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIPrimaries );
    20972097          retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEITransferCharacteristics );
     
    21172117        }
    21182118
    2119         retval = fscanf( fic, "%d", &m_acLayerCfg[layer].m_colourRemapSEIMatrixPresentFlag );
     2119        retval = fscanf( fic, "%d", &tempCode ); m_acLayerCfg[layer].m_colourRemapSEIMatrixPresentFlag = tempCode ? 1 : 0;
    21202120        if( m_acLayerCfg[layer].m_colourRemapSEIMatrixPresentFlag )
    21212121        {
Note: See TracChangeset for help on using the changeset viewer.