Commit 6dfa4eea authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

port FIX_1003_PARAMISM_BINAURAL_RECONFIG_USAN

parent c2bd34bb
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -209,6 +209,7 @@
#define NONBE_FIX_974_OSBA_JBM_MONO_RS_USAN             /* FhG : issue #974: usan in mono and stereo output in OSBA JBM RS */
#define NONBE_FIX_982_OMASA_DELAY_COMP_5MS               /* FhG : issue #982 : 5ms and 20ms output different for OMASA */
#define NONBE_FIX_975_JBM_USAN                          /* FhG: Fix issue #975, USAN in JBM decoding ad 13.2kbps */
#define FIX_1003_PARAMISM_BINAURAL_RECONFIG_USAN        /* FhG: fix for #1003: fix USAN caused by ParamISM reconfig                    */

/* #################### End BASOP porting switches ############################ */

+2 −0
Original line number Diff line number Diff line
@@ -343,11 +343,13 @@ static ivas_error ivas_ism_bitrate_switching_dec(
        tc_nchan_allocate_new = tc_nchan_tc_new;
        tc_nchan_full_new = tc_nchan_tc_new;

#ifndef FIX_1003_PARAMISM_BINAURAL_RECONFIG_USAN
        if ( st_ivas->renderer_type == RENDERER_BINAURAL_PARAMETRIC || st_ivas->renderer_type == RENDERER_BINAURAL_PARAMETRIC_ROOM || st_ivas->renderer_type == RENDERER_STEREO_PARAMETRIC )
        {
            tc_nchan_allocate_new = 2 * BINAURAL_CHANNELS;
            tc_nchan_full_new = tc_nchan_allocate_new;
        }
#endif

        if ( st_ivas->ism_mode == ISM_MODE_PARAM && ( st_ivas->renderer_type != RENDERER_MONO_DOWNMIX && st_ivas->renderer_type != RENDERER_DISABLE && st_ivas->renderer_type != RENDERER_BINAURAL_PARAMETRIC && st_ivas->renderer_type != RENDERER_BINAURAL_PARAMETRIC_ROOM ) )
        {