Commit 6ed7ba27 authored by Anjaneyulu Sana's avatar Anjaneyulu Sana Committed by Sandesh Venkatesh
Browse files

Fix for 3GPP issue 1479: Renderer crashes for MASA long test vector input

parent e9c74df8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4166,7 +4166,7 @@ static void ivas_masa_ext_dirac_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] = L_deposit_h( BASOP_Util_Divide3232_Scale( surCohEner_fx, L_add( L_add( 1, dirEne_fx ), surCohEner_fx ), &surCohRatio_exp[i] ) ); // 31-surCohRatio_exp
                surCohRatio_fx[i] = BASOP_Util_Divide3232_Scale_cadence( surCohEner_fx, L_add( L_add( 1, dirEne_fx ), surCohEner_fx ), &surCohRatio_exp[i] ); // 31-surCohRatio_exp
                move32();
                temp_exp = s_max( temp_exp, surCohRatio_exp[i] );
            }
@@ -4961,7 +4961,7 @@ static void ivas_masa_ext_dirac_render_sf_fx(
                                                                      hSpatParamRendCom->num_freq_bands ) );
            }
        }
        scale_factor = sub( scale_factor, 3 ); // guard bits
        scale_factor = sub( scale_factor, find_guarded_bits_fx( hSpatParamRendCom->num_freq_bands ) ); // guard bits

        FOR( ch = 0; ch < hDirACRend->num_outputs_dir; ch++ )
        {