Commit a390d3c1 authored by Arash Azizi's avatar Arash Azizi
Browse files

issue 2586: creating the switch and adding Q value altering line.

parent f6daa639
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@
#define FIX_1585_ASAN_FORMAT_SW_ALT                     /* VA,FhG: float issues 1585,1593: alternative fix memory leaks with format switching */
#define FIX_BASOP_2573_RF_MODE_UPDATE                   /* FhG: BASOP issue 2573: remove duplicated update of rf_mode parameters from evs_enc_fx(); was already done in updt_enc_common_fx() */
#define FIX_2570_BUF_OVFL                               /* Orange: basop issue 2570: global-buffer-overflow in lib_rend/ivas_objectRenderer_sources_fx.c */
#define FIX_ISSUE_2586_Q_VALUE                          /* FhG: basop issue 2586: Q value not updated after value is altered*/

/* #################### End BE switches ################################## */

+3 −0
Original line number Diff line number Diff line
@@ -420,6 +420,9 @@ ivas_error stereo_memory_dec_fx(
                div_m = BASOP_Util_Divide3216_Scale( hCPE->output_mem_fx[n][i - delay_comp_DFT], hCPE->hStereoDft->win32ms_fx[STEREO_DFT32MS_STEP * ( hCPE->hStereoDft->dft32ms_ovl - 1 + delay_comp_DFT - i )], &div_e );
                hCPE->output_mem_fx[n][i - delay_comp_DFT] = L_shl( div_m, add( div_e, 16 ) ); /* div_e + Q16 */
                move32();
#ifdef FIX_ISSUE_2586_Q_VALUE
                hCPE->q_output_mem_fx[n][i - delay_comp_DFT] = 31 - div_e;
#endif // FIX_ISSUE_2586_Q_VALUE
                // hCPE->output_mem_fx[n][sub(i, delay_comp_DFT)] = hCPE->hStereoDft->win32ms_fx[i_mult(STEREO_DFT32MS_STEP, ( sub(add(sub(hCPE->hStereoDft->dft32ms_ovl, 1), delay_comp_DFT), i) ))];
            }
        }