Commit 21322c85 authored by vaclav's avatar vaclav
Browse files

set the 'last_br_flag' parameter only where it is needed

parent 0d803d80
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -100,7 +100,9 @@ void dtx(
    {
        last_br_cng_flag = 1;
        last_br_flag = 1;
#ifndef NONBE_1211_DTX_BR_SWITCHING
        br_dtx_flag = 1;
#endif
    }
    else
    {
@@ -111,8 +113,8 @@ void dtx(
                       st->lp_noise < 15;
#else
        last_br_flag = st->last_total_brate <= MAX_BRATE_DTX_EVS || st->lp_noise < 15 || ( st->element_mode == IVAS_SCE && st->last_total_brate <= MAX_BRATE_DTX_IVAS );
#endif
        br_dtx_flag = 0;
#endif
    }

    /* Initialization */
@@ -186,6 +188,9 @@ void dtx(
     * Select SID or FRAME_NO_DATA frame if DTX is enabled
     *------------------------------------------------------------------------*/

#ifdef NONBE_1211_DTX_BR_SWITCHING
    br_dtx_flag = 1;
#endif
    if ( st->dtx_sce_sba == 0 )
    {
#ifdef NONBE_1211_DTX_BR_SWITCHING