diff --git a/lib_com/options.h b/lib_com/options.h index 83bde3b7aa7014b0f80ef4944a4e9628b9ac9b04..5af7583cd62286e455dbe4ce667722146644de37 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -105,6 +105,7 @@ #define FIX_1540_EXPOSE_PT_IN_RTP_HEADER_API /* Expose Payload Type setting in RTP Header */ #define FIX_BASOP_2491_MDCT_JBM_CLICK /* FhG: BASOP #2491: Fix Q_synth after TCX concealment (using ACELP concealment) */ #define FIX_1563_FIX_STEREO_SW /* VA: float issue 1563: fix clicks in stereo switching */ +#define FIX_1562_DTX_CRASH_DECODER /* VA: float issue 1562: fix crash in stereo decoding in DTX and bitrate switching */ /* ##################### End NON-BE switches ########################### */ diff --git a/lib_dec/acelp_core_dec_fx.c b/lib_dec/acelp_core_dec_fx.c index 2518d8a3a2d70052badd8a790beb73ebe793e6b7..0152fa0989378f6ae1ef6b8aff7de62bcbd82643 100644 --- a/lib_dec/acelp_core_dec_fx.c +++ b/lib_dec/acelp_core_dec_fx.c @@ -408,7 +408,12 @@ ivas_error acelp_core_dec_fx( { Word16 dec; +#ifdef FIX_1562_DTX_CRASH_DECODER + test(); + IF( st->hPFstat != NULL && st->hPFstat->on != 0 ) +#else IF( ( st->hPFstat->on != 0 ) ) +#endif { Word16 mem_syn_r_size_old, mem_syn_r_size_new; mem_syn_r_size_old = mult_r( 2048, st->last_L_frame ); /* 1.25/20.f = 2048 (Q15)*/