Commit a1331dc0 authored by Manuel Jander's avatar Manuel Jander
Browse files

Fix ivas_pytest_on_merge crash (saturation of mem_decim16k_fx)

parent 5c752786
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -754,7 +754,7 @@ void pre_proc_front_ivas_fx(
    shift = add( shift, st->q_inp );

    /* Avoid saturation of resampling/delay decimation buffer. */
    shift = s_min( shift, add( st->q_mem_decim16k_fx, 1 ) );
    shift = s_min( shift, st->q_mem_decim16k_fx );

    /* Limit Q_new here to st->q_inp because inside ivas_compute_core_buffers_fx() st->input is rescaled to Q_new */
    shift = s_min( shift, st->q_inp );