Commit 57dfffc8 authored by kulgod's avatar kulgod
Browse files

restricting Q to 9

parent e3ade4c3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1571,6 +1571,7 @@ void ivas_mdct_core_whitening_enc_fx(
                    exp_com = s_min( exp_com, L_norm_arr( mdst_spectrum_fx[1][n], length ) );

                    q_com = sub( s_min( Q31, add( sub( Q31, exp_max ), exp_com ) ), 6 ); // 6 guarded bits
                    q_com = s_max( q_com, 9 );
                    exp_com = sub( Q31, q_com );

                    Scale_sig32( hTcxEnc0->spectrum_fx[n], shr( hTcxEnc0->L_frameTCX, shift ) /* hTcxEnc0->L_frameTCX/nSubframes */, sub( hTcxEnc0->spectrum_e[n], exp_com ) ); // hTcxEnc0->spectrum_e