Commit fea97d6f authored by vaclav's avatar vaclav
Browse files

add sanity assert

parent db73846b
Loading
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -2751,7 +2751,11 @@ void ivas_jbm_dec_copy_tc_no_tsm(
#endif
    n_ch_cldfb = hTcBuffer->nchan_transport_jbm - hTcBuffer->nchan_buffer_full;

#ifndef FIX_1101_CLEANING_JBM_CALL
#ifdef FIX_1101_CLEANING_JBM_CALL
#ifdef DEBUGGING
    assert( st_ivas->hDecoderConfig->Opt_tsm == 0 );
#endif
#else
    /* copy full tcs*/
    if ( st_ivas->hDecoderConfig->Opt_tsm )
    {
@@ -2760,9 +2764,9 @@ void ivas_jbm_dec_copy_tc_no_tsm(
            mvr2r( tc[ch_idx], st_ivas->hTcBuffer->tc[ch_idx], hTcBuffer->n_samples_buffered );
        }
    }
#endif
    ch_idx = 0;

#endif
    /* CLDFB ana for ParamMC/ParamISM */
    if ( n_ch_cldfb > 0 )
    {
@@ -2793,9 +2797,13 @@ void ivas_jbm_dec_copy_tc_no_tsm(
            assert( 0 && "Residual (direct CLDFB transport channels) only possible for ParamMC/ParamISM!" );
        }
#endif
        /* CLDFB Analysis*/

        /* CLDFB Analysis*/
#ifdef FIX_1101_CLEANING_JBM_CALL
        for ( ch_idx = 0, cldfb_ch = 0; cldfb_ch < n_ch_cldfb; cldfb_ch++, ch_idx++ )
#else
        for ( cldfb_ch = 0; cldfb_ch < n_ch_cldfb; cldfb_ch++, ch_idx++ )
#endif
        {
            for ( slot_idx = 0; slot_idx < DEFAULT_JBM_CLDFB_TIMESLOTS; slot_idx++ )
            {