Commit 0254b8b1 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '3gpp_issue_1221_fix' into 'main'

Fix for 3GPP issue 1221: Encoder crash for McMASA 5.1 at 16.4kbps in encod_unvoiced_ivas_fx()

See merge request !1019
parents 5c1bbb01 ba452940
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -484,7 +484,7 @@ Word16 gain_enc_uv_fx( /* o : quantization pitch ind
        /* gcode = pred_nrg_frame * (*gain_inov); */
        L_tmp = Mpy_32_16_1( pred_nrg_frame, *gain_inov ); /* 18Q13 */
        i = norm_l( L_tmp );
        g_code = round_fx( L_shl( L_tmp, i ) );
        g_code = round_fx_sat( L_shl( L_tmp, i ) );
        exp_gcode = sub( 18, i );

        /* norm_code2 = 1.0f / sqrt((dot_product(code2, code2, lcode) + 0.01f) / lcode); */