Commit b2b2d4bd authored by Manuel Jander's avatar Manuel Jander
Browse files

Rescale st->hTcxEnc->Txnq to Q-1 because the internal decoder requires that....

Rescale st->hTcxEnc->Txnq to Q-1 because the internal decoder requires that. Doing otherwise requires a lot more changes. Fixes wrong ACELP to TCX transition.
parent a27eeaf1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -328,6 +328,10 @@ ivas_error ivas_core_enc_fx(
            Word16 Q_spec_old, L_spec;

#ifdef NONBE_FIX_ISSUE_2206
            Scale_sig( st->hTcxEnc->Txnq, L_FRAME32k / 2 + 64, sub( negate( 1 ), st->hTcxEnc->q_Txnq ) ); /* Q(-1) */
            st->hTcxEnc->q_Txnq = -Q1;
            move16();

            Q_spec_old = hTcxEnc->spectrum_long_e;
            move16();