Commit 2e84f606 authored by vaclav's avatar vaclav
Browse files

replace a magic number by macro IVAS_BRATE_OMASA_STEREO_SW_THR

parent 6983ec74
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -82,6 +82,10 @@
#define RMS_THR       100
#define RATIO_PG_LRTD 0.96f

#ifdef MASA_AND_OBJECTS
#define IVAS_BRATE_OMASA_STEREO_SW_THR 15000
#endif


/*-------------------------------------------------------------------*
 * Local function prototypes
@@ -202,7 +206,7 @@ int16_t stereo_tdm_ener_analysis(
    if ( ivas_format == MASA_ISM_FORMAT )
    {

        if ( ( hCPE->hStereoClassif->lrtd_mode == 1 || hCPE->hStereoTD->prev_fr_LRTD_TD_dec == 1 ) && ( hCPE->element_brate - 50 * FRAMES_PER_SEC + hCPE->brate_surplus + hCPE->brate_surplus < 15000 ) )
        if ( ( hCPE->hStereoClassif->lrtd_mode == 1 || hCPE->hStereoTD->prev_fr_LRTD_TD_dec == 1 ) && ( hCPE->element_brate - 50 * FRAMES_PER_SEC + hCPE->brate_surplus + hCPE->brate_surplus < IVAS_BRATE_OMASA_STEREO_SW_THR ) )
        {
            hStereoTD->prev_fr_LRTD_TD_dec = 0;
        }