Ignore:
Timestamp:
18 Apr 2014, 23:19:28 (11 years ago)
Author:
seregin
Message:

fix compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-6-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r695 r699  
    334334  FILE* fic = fopen( file, "r" );
    335335
    336   Int iVal;
    337 
    338   fscanf( fic, "%d", &seiColorMappingInfo->m_colorMapId );
    339   fscanf( fic, "%d", &iVal );
     336  Int iVal, retval;
     337
     338  retval = fscanf( fic, "%d", &seiColorMappingInfo->m_colorMapId );
     339  retval = fscanf( fic, "%d", &iVal );
    340340  seiColorMappingInfo->m_colorMapCancelFlag = iVal;
    341341  if( !seiColorMappingInfo->m_colorMapCancelFlag )
    342342  {
    343     fscanf( fic, "%d", &iVal );
     343    retval = fscanf( fic, "%d", &iVal );
    344344    seiColorMappingInfo->m_colorMapPersistenceFlag = iVal;
    345     fscanf( fic, "%d", &iVal );
     345    retval = fscanf( fic, "%d", &iVal );
    346346    seiColorMappingInfo->m_colorMap_video_signal_type_present_flag = iVal;
    347347    if( seiColorMappingInfo->m_colorMap_video_signal_type_present_flag )
    348348    {
    349       fscanf( fic, "%d", &iVal );
     349      retval = fscanf( fic, "%d", &iVal );
    350350      seiColorMappingInfo->m_colorMap_video_full_range_flag = iVal;
    351       fscanf( fic, "%d", &seiColorMappingInfo->m_colorMap_primaries );
    352       fscanf( fic, "%d", &seiColorMappingInfo->m_colorMap_transfer_characteristics );
    353       fscanf( fic, "%d", &seiColorMappingInfo->m_colorMap_matrix_coeffs );
    354     }
    355   }
    356 
    357   fscanf( fic, "%d", &seiColorMappingInfo->m_colour_map_coded_data_bit_depth );
    358   fscanf( fic, "%d", &seiColorMappingInfo->m_colour_map_target_bit_depth );
    359   fscanf( fic, "%d", &iVal );
     351      retval = fscanf( fic, "%d", &seiColorMappingInfo->m_colorMap_primaries );
     352      retval = fscanf( fic, "%d", &seiColorMappingInfo->m_colorMap_transfer_characteristics );
     353      retval = fscanf( fic, "%d", &seiColorMappingInfo->m_colorMap_matrix_coeffs );
     354    }
     355  }
     356
     357  retval = fscanf( fic, "%d", &seiColorMappingInfo->m_colour_map_coded_data_bit_depth );
     358  retval = fscanf( fic, "%d", &seiColorMappingInfo->m_colour_map_target_bit_depth );
     359  retval = fscanf( fic, "%d", &iVal );
    360360  seiColorMappingInfo->m_colorMapModelId = iVal;
    361361
     
    364364  for( Int i=0 ; i<3 ; i++ )
    365365  {
    366     fscanf( fic, "%d", &seiColorMappingInfo->m_num_input_pivots[i] );
     366    retval = fscanf( fic, "%d", &seiColorMappingInfo->m_num_input_pivots[i] );
    367367    seiColorMappingInfo->m_coded_input_pivot_value[i]   = new Int[ seiColorMappingInfo->m_num_input_pivots[i] ];
    368368    seiColorMappingInfo->m_target_input_pivot_value[i]  = new Int[ seiColorMappingInfo->m_num_input_pivots[i] ];
    369369    for( Int j=0 ; j<seiColorMappingInfo->m_num_input_pivots[i] ; j++ )
    370370    {
    371       fscanf( fic, "%d", &seiColorMappingInfo->m_coded_input_pivot_value[i][j] );
    372       fscanf( fic, "%d", &seiColorMappingInfo->m_target_input_pivot_value[i][j] );
    373     }
    374   }
    375 
    376   fscanf( fic, "%d", &iVal );
     371      retval = fscanf( fic, "%d", &seiColorMappingInfo->m_coded_input_pivot_value[i][j] );
     372      retval = fscanf( fic, "%d", &seiColorMappingInfo->m_target_input_pivot_value[i][j] );
     373    }
     374  }
     375
     376  retval = fscanf( fic, "%d", &iVal );
    377377  seiColorMappingInfo->m_matrix_flag = iVal;
    378378  if( seiColorMappingInfo->m_matrix_flag )
    379379  {
    380     fscanf( fic, "%d", &seiColorMappingInfo->m_log2_matrix_denom );
     380    retval = fscanf( fic, "%d", &seiColorMappingInfo->m_log2_matrix_denom );
    381381    for( Int i=0 ; i<3 ; i++ )
    382382    {
    383383      for( Int j=0 ; j<3 ; j++ )
    384384      {
    385         fscanf( fic, "%d", &seiColorMappingInfo->m_matrix_coef[i][j] );
     385        retval = fscanf( fic, "%d", &seiColorMappingInfo->m_matrix_coef[i][j] );
    386386      }
    387387    }
     
    390390  for( Int i=0 ; i<3 ; i++ )
    391391  {
    392     fscanf( fic, "%d", &seiColorMappingInfo->m_num_output_pivots[i] );
     392    retval = fscanf( fic, "%d", &seiColorMappingInfo->m_num_output_pivots[i] );
    393393    seiColorMappingInfo->m_coded_output_pivot_value[i]   = new Int[ seiColorMappingInfo->m_num_output_pivots[i] ];
    394394    seiColorMappingInfo->m_target_output_pivot_value[i]  = new Int[ seiColorMappingInfo->m_num_output_pivots[i] ];
    395395    for( Int j=0 ; j<seiColorMappingInfo->m_num_output_pivots[i] ; j++ )
    396396    {
    397       fscanf( fic, "%d", &seiColorMappingInfo->m_coded_output_pivot_value[i][j] );
    398       fscanf( fic, "%d", &seiColorMappingInfo->m_target_output_pivot_value[i][j] );
     397      retval = fscanf( fic, "%d", &seiColorMappingInfo->m_coded_output_pivot_value[i][j] );
     398      retval = fscanf( fic, "%d", &seiColorMappingInfo->m_target_output_pivot_value[i][j] );
    399399    }
    400400  }
Note: See TracChangeset for help on using the changeset viewer.