Commit d07e83e3 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '3gpp_issue_992_fix' into 'main'

Fix for 3GPP issue 992: Crash in ivas_dirac_dec_render_fx() in OMASA JBM decoding

See merge request !745
parents 9dfdde50 60b5f808
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4101,9 +4101,9 @@ void ivas_dirac_dec_render_sf_fx(
                    hDirACRend->h_output_synthesis_psd_state.direct_power_factor_fx[i] = L_add( hDirACRend->h_output_synthesis_psd_state.direct_power_factor_fx[i], surCohEner_fx ); // Q29
                    move32();

                    surCohRatio_fx[i] = BASOP_Util_Divide3232_Scale( surCohEner_fx, ( L_add( EPSILLON_FX, L_add( dirEne_fx, surCohEner_fx ) ) ), &temp_q );
                    surCohRatio_fx[i] = BASOP_Util_Divide3232_Scale_cadence( surCohEner_fx, ( L_add( EPSILLON_FX, L_add( dirEne_fx, surCohEner_fx ) ) ), &temp_q );
                    move32();
                    surCohRatio_fx[i] = L_shl( surCohRatio_fx[i], temp_q ); // Q31
                    surCohRatio_fx[i] = L_shl( surCohRatio_fx[i], sub( temp_q, 16 ) ); // Q15
                    move32();
                }
            }