Commit 8302f029 authored by Manuel Jander's avatar Manuel Jander
Browse files

Use L_norm_arr instead of getScaleFactor32. Add assert checking proto_power_smooth q values.

parent bd8ebe21
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2190,6 +2190,8 @@ void ivas_dirac_dec_output_synthesis_process_subframe_psd_ls_fx(
            *( p_power_smooth_prev ) = L_add( *( p_power_smooth_prev ), Mpy_32_32( g1, ( *p_power_smooth ) ) ); //(Q31, q_proto_power_smooth) -> q_proto_power_smooth
            move32();

            assert(h_dirac_output_synthesis_state->proto_power_smooth_prev_q == h_dirac_output_synthesis_state->proto_power_smooth_q);

            IF( EQ_32( *( p_power_smooth_prev ), EPSILON_FX ) )
            {
                p_power_smooth_prev++;