Commit 29d789c5 authored by advasila's avatar advasila
Browse files

leave just one TD bitrate correction

parent e0cefc5c
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -408,12 +408,13 @@ void tdm_bit_alloc(
            }
            *total_brate_sec += ( fast_FCB_rates_2sfr[idx] - tmp_rate );
        }
#ifndef FIX_751_MASA_TD_BITRATE_CHECK
        /* prevent 2.4 kb/s and 2.8 kb/s as they are reserved bitrates for DTX and VBR */
        if ( *total_brate_sec == PPP_NELP_2k80 || *total_brate_sec == SID_2k40 )
        {
            *total_brate_sec += 100;
        }

#endif
        /* To prevent 13.2 kb/s for primary channel as some bitstream issues arrise with it */
        if ( element_brate_wo_meta - *total_brate_sec == ACELP_13k20 )
        {
@@ -421,13 +422,12 @@ void tdm_bit_alloc(
        }
    }
#ifdef FIX_751_MASA_TD_BITRATE_CHECK
    else
    {
    /* prevent 2.4 kb/s and 2.8 kb/s as they are reserved bitrates for DTX and VBR */
    if ( *total_brate_sec == PPP_NELP_2k80 || *total_brate_sec == SID_2k40 )
    {
            *total_brate_sec += 100;
        }
        *total_brate_sec -= 100;
    }
    
#endif
    *total_brate_pri = element_brate_wo_meta - *total_brate_sec;