Commit 2bf3969b authored by Devansh Kandpal's avatar Devansh Kandpal
Browse files

Added logical error fix in interpolate_energies()

parent e00fb215
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -988,6 +988,7 @@ void ivas_reverb_interpolate_energies_fx(
                {
                    input_idx = add( input_idx, 1 );
                }
                input_idx_next = add( input_idx, 1 );
                // Rel_offset
                rel_offset = BASOP_Util_Divide3232_Scale( L_sub( pOutput_fc[output_idx], pInput_fc[input_idx] ), L_sub( pInput_fc[input_idx_next], pInput_fc[input_idx] ), &rel_offset_e ); // Q15
                rel_offset = L_shl_sat( rel_offset, rel_offset_e );