Commit 43ada01a authored by Manuel Jander's avatar Manuel Jander
Browse files

Increase st->input headroom to 2 bits in SWB preproc and TBE/BWE.

parent d73cc14a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -702,13 +702,13 @@ ivas_error ivas_core_enc_fx(
#ifdef NONBE_FIX_ISSUE_2206
        IF( GE_32( input_Fs, 32000 ) && st->hBWE_TD != NULL )
        {
            /* provide 1 bit of headroom. A better solution is to deal with the scale of
            /* provide 2 bits of headroom. A better solution is to deal with the scale of
               hBWE_FD->old_fdbwe_speech_fx and other vectors which are fixed to Q-1 */
            st->q_inp = sub( st->q_inp, 1 );
            st->q_old_inp = sub( st->q_old_inp, 1 );
            st->q_inp = sub( st->q_inp, 2 );
            st->q_old_inp = sub( st->q_old_inp, 2 );
            move16();
            move16();
            Scale_sig( st->input_fx - input_frame, shl( input_frame, 1 ), -1 );
            Scale_sig( st->input_fx - input_frame, shl( input_frame, 1 ), -2 );
        }

#else