Commit dbfda4bb authored by multrus's avatar multrus
Browse files

fix q-calculation

parent 7074dfe2
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -965,7 +965,7 @@ UWord8 apa_exec_ivas_fx(
        Word16 a_tmp[APA_BUF];
        Word16 *buf_out_ptr = &( ps->buf_out_fx[ps->l_buf_out - ps->l_frm] );
#ifdef FIX1998_APA_EXEC_SCALING
        Word16 Q_buf_out_tmp = sub( norm_arr( ps->buf_out_fx, ps->buf_out_capacity ), Q1 );
        Word16 Q_buf_out_tmp = sub( add( norm_arr( ps->buf_out_fx, ps->buf_out_capacity ), ps->Q_buf_out ), Q1 );

        Q_a_out = s_min( Q_a_out, Q_buf_out_tmp );
#else