Commit 05a35532 authored by fotopoulou's avatar fotopoulou
Browse files

[fix] for issue 309 - distortion in ISM, mem_preemph_enc was overwritten in...

[fix] for issue 309 - distortion in ISM, mem_preemph_enc was overwritten in ivas preprocessing for tcxonly modes
parent eb7d0087
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -162,6 +162,7 @@
#define SET_TNS_FLAG_IN_EVERY_FRAME                     /* FhG: issue 288 - mismatch between encoder and decoder wrt TNS usage in unified stereo  with frameloss */
#define FIX_FOR_TEST                                    /* allows tests to pass using old TD binary file, to be removed after merge*/
#define FIX_299_ISM_BWS                                 /* VA: issue 299 - fix Band-width switching issues in ISM format */
#define FIX_309_PREMPH_MEM_SCE                          /* FhG: issue 309 - fix overwriting of mem_preemph_enc in ivas preprocessing for SCE and tcxonly modes*/


/* ################## End DEVELOPMENT switches ######################### */
+5 −1
Original line number Diff line number Diff line
@@ -659,7 +659,11 @@ ivas_error ivas_compute_core_buffers(
     * Perform fixed preemphasis (16kHz signal) through 1 - g*z^-1
     *-----------------------------------------------------------------*/

    if ( !( ( element_mode == IVAS_CPE_TD && st->idchan == 1 ) || element_mode == IVAS_CPE_MDCT ) )
    if (
#ifdef FIX_309_PREMPH_MEM_SCE
        st->tcxonly == 0 &&
#endif
        !( ( element_mode == IVAS_CPE_TD && st->idchan == 1 ) || element_mode == IVAS_CPE_MDCT ) )
    {
        st->mem_preemph_enc = new_inp_16k[L_frame_tmp - 1];
    }