Commit 99d1ecb9 authored by vaillancour's avatar vaillancour
Browse files

proposed fix to 844

parent 4e186fa8
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -159,6 +159,7 @@
#define FIX_833_CORRECTION_to_826                   /* VA : fix indexing error introduced in 826 */
#endif
#define NONE_BE_FIX_816_LFE_PLC_FLOAT                   /* DLB: issue 816: reduce required precision to float for LFE-PLC*/
#define FIX_844_Q_SYN_INIT                          /* VA : proposed fix to 844, initializing q_old_synth when switching to MDCT*/
/* ################## End DEVELOPMENT switches ######################### */

/* clang-format on */
+5 −0
Original line number Diff line number Diff line
@@ -748,6 +748,7 @@ ivas_error ivas_core_dec_fx(
                    move16();
#endif
                    st->prev_Q_syn = st->Q_syn;

                    move16();

                    Scale_sig( st->hHQ_core->old_out_LB_fx, L_FRAME32k, sub( st->Q_syn, st->hHQ_core->Q_old_wtda_LB ) );
@@ -757,6 +758,10 @@ ivas_error ivas_core_dec_fx(
                    {
                        st->hTcxDec->conNoiseLevelIndex = st->hTcxDec->NoiseLevelIndex_bfi;
                        move16();             
#ifdef FIX_844_Q_SYN_INIT
                        st->hTcxDec->q_old_synth = st->Q_syn;
                        move16();
#endif
                    }
                    IF( st->hTcxDec )
                    {