Commit e40e32a0 authored by vaclav's avatar vaclav
Browse files

remove redundant code

parent b8f6a84d
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -3691,7 +3691,6 @@ ivas_error ivas_jbm_dec_tc_buffer_open_fx(
 * open and initialize JBM transport channel buffer
 *--------------------------------------------------------------------------*/


ivas_error ivas_jbm_dec_tc_buffer_reconfigure_fx(
    Decoder_Struct *st_ivas,               /* i/o: IVAS decoder structure                  */
    const TC_BUFFER_MODE tc_buffer_mode,   /* i  : new buffer mode                         */
@@ -3708,7 +3707,6 @@ ivas_error ivas_jbm_dec_tc_buffer_reconfigure_fx(
    hTcBuffer = st_ivas->hTcBuffer;
    move16();


    /* if granularity changes, adapt subframe_nb_slots */
    IF( NE_16( n_samples_granularity, hTcBuffer->n_samples_granularity ) )
    {
@@ -3799,20 +3797,6 @@ ivas_error ivas_jbm_dec_tc_buffer_reconfigure_fx(
            {
                hTcBuffer->tc_fx[ch_idx] = NULL;
            }

            hTcBuffer->tc_buff_len = nsamp_to_allocate;
            move16();

            offset = 0;
            move16();
            FOR( ch_idx = 0; ch_idx < hTcBuffer->nchan_buffer_full; ch_idx++ )
            {
                offset = add( offset, n_samp_full );
            }
            FOR( ; ch_idx < hTcBuffer->nchan_transport_internal; ch_idx++ )
            {
                offset = add( offset, n_samp_residual );
            }
        }
        ELSE
        {
+1 −2
Original line number Diff line number Diff line
@@ -986,8 +986,7 @@ typedef struct ivas_masa_ism_data_structure

typedef struct decoder_tc_buffer_structure
{
    Word32 *tc_buffer_fx;                                                                                                               /* the buffer itself                                                        */
    Word16 tc_buff_len;                                                                                                                 /*stores memory length of tc buffer*/
    Word32 *tc_buffer_fx; /* the buffer itself                                                        */                                /*stores memory length of tc buffer*/
    Word32 *tc_fx[MAX_OUTPUT_CHANNELS + MAX_NUM_OBJECTS]; /* pointers into the buffer to the beginning of each tc  Q11 for ivas      */ // VE2SB: TBV
    Word16 no_channels;                                                                                                                 /*Stores no of channels in tc_fx with values*/
    Word16 q_tc_fx;