Commit fcb20132 authored by multrus's avatar multrus
Browse files

merge from ivas-float-update

parents b3157c5a 4e2c485d
Loading
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -568,12 +568,27 @@ static void setupWithSingleFormatInput(
        positionProvider->numObjects = args.inConfig.numAudioObjects;
        for ( int16_t i = 0; i < positionProvider->numObjects; ++i )
        {
#ifdef FIX_1376_MISSING_ISM_METADATA
            /* Check if path to metadata file was given */
            if ( isEmptyString( args.inMetadataFilePaths[i] ) )
            {
                fprintf( stderr, "No metadata file was given for ISM input %d\n", i );
                exit( -1 );
            }

            /* It is allowed on CLI to have no metadata for an ISM input - skip opening if string contains "NULL" */
#else
            /* It is allowed on CLI to have no metadata for an ISM input - skip opening if string is empty or contains "NULL" */
#endif
            char charBuf[FILENAME_MAX];
            strncpy( charBuf, args.inMetadataFilePaths[i], min( FILENAME_MAX, RENDERER_MAX_CLI_ARG_LENGTH ) - 1 );
            charBuf[min( FILENAME_MAX, RENDERER_MAX_CLI_ARG_LENGTH ) - 1] = '\0';
            to_upper( charBuf );
#ifdef FIX_1376_MISSING_ISM_METADATA
            if ( strncmp( charBuf, "NULL", 4 ) == 0 )
#else
            if ( isEmptyString( args.inMetadataFilePaths[i] ) || strncmp( charBuf, "NULL", 4 ) == 0 )
#endif
            {
                continue;
            }
+2 −0
Original line number Diff line number Diff line
@@ -195,6 +195,8 @@
#define TMP_FIX_1119_SPLIT_RENDERING_VOIP               /* FhG: Add error check for unsupported config: split rendering with VoIP mode */
#define FIX_1113_EXTREND_ISAR                           /* FhG: issue 1113: fix external renderer asserts for FOA/HOA2 and CLDFB config */
#define FIX_938_COMPILER_WARNING                        /* FhG: Fix compiler warning in ivas_mdct_core_reconstruct() */
#define FIX_1376_MISSING_ISM_METADATA                   /* FhG: IVAS_rend: throw error if there exists an ISM input without a corresponding metadata file path */
#define FIX_1385_INIT_IGF_STOP_FREQ                     /* FhG: Initialize infoIGFStopFreq in init_igf_dec() */
#define FIX_1387_INIT_PRM_SQQ                           /* FhG: initialize pointer prm_sqQ, which might be uninitialized in case of bfi == 1 */

/* #################### End BASOP porting switches ############################ */
+3 −0
Original line number Diff line number Diff line
@@ -1592,6 +1592,9 @@ void init_igf_dec(
    hIGFDec->flag_sparse = &hIGFDec->flag_sparseBuf[0];
    hIGFDec->infoTCXNoise = &hIGFDec->infoTCXNoiseBuf[0];
    hIGFDec->virtualSpec = &hIGFDec->virtualSpecBuf[0];
#ifdef FIX_1385_INIT_IGF_STOP_FREQ
    hIGFDec->infoIGFStopFreq = 0;
#endif

    return;
}