Commit 926beeda authored by vaclav's avatar vaclav
Browse files

fix

parent a8b89d19
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3610,7 +3610,7 @@ ivas_error ivas_jbm_dec_tc_buffer_reconfigure_fx(

        /* nMaxSlotsPerSubframeNew = (int16_t) ( st_ivas->hDecoderConfig->output_Fs / ( FRAMES_PER_SEC * MAX_PARAM_SPATIAL_SUBFRAMES ) ) / n_samples_granularity; */
        tmp = (Word16) Mpy_32_16_1( st_ivas->hDecoderConfig->output_Fs, ONE_BY_SUBFR_PER_SEC_Q15 );
        tmp = BASOP_Util_Divide1616_Scale( tmp, hTcBuffer->n_samples_granularity, &tmp_e );
        tmp = BASOP_Util_Divide1616_Scale( tmp, n_samples_granularity, &tmp_e );
        nMaxSlotsPerSubframeNew = shr( tmp, sub( 15, tmp_e ) ); /* Q0 */

        /* if samples were flushed, take that into account here */
+2 −2
Original line number Diff line number Diff line
@@ -969,8 +969,8 @@ ivas_error ivas_td_binaural_renderer_ext_fx(
    }

    tmp = (Word16) Mpy_32_16_1( output_Fs, ONE_BY_SUBFR_PER_SEC_Q15 );
    tmp = BASOP_Util_Divide1616_Scale( tmp, output_frame, &exp_tmp );
    Word16 num_subframes = shr( tmp, sub( 15, exp_tmp ) ); // Q0
    tmp = BASOP_Util_Divide1616_Scale( output_frame, tmp, &exp_tmp );
    Word16 num_subframes = shr( tmp, sub( 15, exp_tmp ) ); /* Q0 */

    FOR( Word16 subframe_idx = 0; subframe_idx < num_subframes; subframe_idx++ )
    {