diff --git a/lib_com/options.h b/lib_com/options.h index 91427ad04be26e89a39ad578d342dcd6f16fab9f..a99a18570c900d434dfd5383a63a0227bae667e6 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -159,6 +159,9 @@ #define ROM_TO_RAM /*Dlb : ROM optimization in SR mode*/ #define FIX_712_713_SPLIT_REND_MASA_MC /*Dlb : Fix for issue 712 and 713*/ #endif +#define FIX_705_REND_CONF_FALSE_WARNING /* Eri: Bug in MSVC ftell() for UNIX-style line endings trigger false warning messages in renderer configuration. */ + +/* #################### End BE switches ################################## */ #define IGF_MEMORY_ALLOC_OPT /* FhG: Issue 157: allocate IGF encoder structure only when needed */ #define FIX_732_PLANAR_SBA_OSBA /* Dlb : issue 732: fix for crash in planar mode in OSBA format*/ diff --git a/lib_util/render_config_reader.c b/lib_util/render_config_reader.c index 2571ea9784bb34c73e90ee24d0abf318f642229f..c831dede93dac8db37dc7207e51a0610f4e26d15 100644 --- a/lib_util/render_config_reader.c +++ b/lib_util/render_config_reader.c @@ -1857,6 +1857,9 @@ ivas_error RenderConfigReader_read( pTemp = (char *) calloc( file_size + 1, sizeof( char ) ); acIdx = 0; roomAcHasFgCount = roomAcHasAcEnvCount = FALSE; +#ifdef FIX_705_REND_CONF_FALSE_WARNING + setvbuf( pRenderConfigReader->pConfigFile, pConfig_str, _IONBF, sizeof( char ) ); /* Work-around for VS bug that gives incorrect ftell for UNIX-style line endings */ +#endif /* read file line by line */ while ( fgets( pConfig_str, file_size, pRenderConfigReader->pConfigFile ) != NULL )