Commit 7297642c authored by bayers's avatar bayers
Browse files

fixed asan,msan problems, clang format, fixed Linux compiler warnings

parent 12efb57f
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@
/*#define TDREND_HRTF_TABLE_METHODS*/           /* Enable HRTF lookup from tables, for testing & evaluation. Supply file in table format to use. Note that a suitable HR filter lookup method should be written if the filters sample point grids are not in the formats. */
/*#define TDREND_STANDALONE*/                   /* Used when renderer is built in standalone form, without IVAS encoding/decoding (see scripts/object_renderer_standalone). This is just here to ensure this is cleaned out by prepare_instrumentation.sh */

#define DEBUG_SBA                               /* debug DIRAC/SPAR in-out */
/*#define DEBUG_SBA */                          /* debug DIRAC/SPAR in-out */
#ifdef DEBUG_SBA
/*#define DEBUG_SBA_AUDIO_DUMP */               /* SBA intermediate audio wav file dumping */
/*#define DEBUG_SBA_MD_DUMP*/                   /* SBA metadata and variable file dumping */
@@ -148,7 +148,7 @@
#define FIX_419_ISM_MD_FIX                              /* VA: Issue 419: fix the upper value limitation for parameter angle1_diff_cnt */

#define SNS_MSVQ                                        /* FhG: contribution 33 - MSVQ for SNS parameters at stereo mid bitrates */
#define FIX_XXX_JBM_FIFO_BUFFER                         /* FhG: prevent wraparound of a length identifier in cause of large frames and many channels*/
/*#define FIX_XXX_JBM_FIFO_BUFFER  */                   /* FhG: prevent wraparound of a length identifier in cause of large frames and many channels*/

#define FIX_379_GAININTP                                /* Eri: Adds a gain interpolation for directional/distance gain to handle abrupt changes in metadata (Non BE) */

+0 −1
Original line number Diff line number Diff line
@@ -1950,7 +1950,6 @@ void generate_masking_noise_lb_dirac(
            }
            n_samples_out -= hFdCngCom->frameSize;
            n_samples_start += hFdCngCom->frameSize;

        }
    }

+4 −0
Original line number Diff line number Diff line
@@ -2559,6 +2559,10 @@ void ivas_dirac_dec_render_sf(
#endif
                }
            }
            else
            {
                set_zero( surCohRatio, hDirAC->num_freq_bands );
            }
        }
        if ( st_ivas->hDecoderConfig->Opt_Headrotation && st_ivas->hHeadTrackData->shd_rot_max_order == 1 )
        {
+8 −2
Original line number Diff line number Diff line
@@ -196,6 +196,9 @@ static ivas_error ivas_ism_bitrate_switching(
            /* close the ISM renderer and reinitialize */
            if ( st_ivas->hIsmRendererData != NULL )
            {
#ifdef JBM_TSM_ON_TCS
                free( st_ivas->hIsmRendererData->interpolator );
#endif
                free( st_ivas->hIsmRendererData );
                st_ivas->hIsmRendererData = NULL;
            }
@@ -264,6 +267,9 @@ static ivas_error ivas_ism_bitrate_switching(
            /* Close the ISM renderer */
            if ( st_ivas->hIsmRendererData != NULL )
            {
#ifdef JBM_TSM_ON_TCS
                free( st_ivas->hIsmRendererData->interpolator );
#endif
                free( st_ivas->hIsmRendererData );
                st_ivas->hIsmRendererData = NULL;
            }
+3 −7
Original line number Diff line number Diff line
@@ -195,8 +195,8 @@ static void ivas_param_ism_compute_mixing_matrix(
    float direct_response[MAX_NUM_OBJECTS][PARAM_ISM_MAX_CHAN],
    const int16_t nchan_transport,
    const int16_t nchan_out_woLFE,
    const float cx_diag[][PARAM_ISM_MAX_DMX],
    const float ref_power[],
    float cx_diag[][PARAM_ISM_MAX_DMX],
    float ref_power[],
    float mixing_matrix[CLDFB_NO_CHANNELS_MAX][PARAM_ISM_MAX_CHAN * PARAM_ISM_MAX_DMX] )
{
    int16_t band_idx, bin_idx;
@@ -1378,8 +1378,6 @@ void ivas_param_ism_dec_digest_tc(

    DIRAC_DEC_HANDLE hDirAC;

    IVAS_OUTPUT_SETUP hSetup;

    /* Initialization */
    hDirAC = st_ivas->hDirAC;
    assert( hDirAC );
@@ -1399,8 +1397,6 @@ void ivas_param_ism_dec_digest_tc(
        nchan_out_woLFE = st_ivas->hIntSetup.nchan_out_woLFE;
    }

    hSetup = st_ivas->hIntSetup;

    push_wmops( "ivas_param_ism_dec" );

    /* general setup */
Loading