Commit 7664fbd6 authored by vaclav's avatar vaclav
Browse files

revert change of declaration of 'num_fade_frames'

parent 0786425e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2255,7 +2255,6 @@ static void ivas_spar_dec_compute_ramp_down_post_matrix(
    const int16_t bfi )
{
    int16_t num_in_ch, num_out_ch, i, j, b, i_ts;
    int16_t num_fade_frames;
    int16_t gain_dB;
    float gain;
    float post_matrix[IVAS_SPAR_MAX_CH];
@@ -2279,6 +2278,7 @@ static void ivas_spar_dec_compute_ramp_down_post_matrix(

        if ( hMdDec->spar_plc_num_lost_frames > ivas_spar_dec_plc_num_frames_keep )
        {
            int16_t num_fade_frames;
            num_fade_frames = max( hMdDec->spar_plc_num_lost_frames - ivas_spar_dec_plc_num_frames_keep, 0 );
            gain_dB = -min( num_fade_frames, ivas_spar_dec_plc_max_num_frames_ramp_down ) * ivas_spar_dec_plc_per_frame_ramp_down_gain_dB;
            gain = powf( 10, ( ( (float) gain_dB ) / 20 ) );