Commit 98a326b7 authored by TYAGIRIS's avatar TYAGIRIS
Browse files

Merge branch '413-sba-dtx-issue-with-2tc-cpe-mode' into 'main'

[Non-BE] fix for CNG issue in DTX frames in SBA 2TC modes

See merge request !562
parents c180b501 a5ed3c41
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@

#define FIX_416_ISM_BR_SWITCHING                        /* FhG: add missing CLDFB reconfig to ISM BR switching */
#define FIX_SP2A                                        /* VA: Issue 412: Adjust threshold for the S_p2a feature in the tonal detector */

#define FIX_413_SBA_DTX                                 /*Dlb: Fix for issue 413, SBA DTX CNG in 2TC mode*/


/* ################## End DEVELOPMENT switches ######################### */
+11 −0
Original line number Diff line number Diff line
@@ -468,11 +468,22 @@ ivas_error initMdctStereoDtxData(

            /* Init FD-CNG */
            initFdCngDec( st );
#ifndef FIX_413_SBA_DTX
            if ( ch == 1 && st->cng_sba_flag )
            {
                st->hFdCngDec->hFdCngCom->seed += 3;
            }
#endif
        }
#ifdef FIX_413_SBA_DTX
        if ( st->first_CNG == 0 )
        {
            if ( ch == 1 && st->cng_sba_flag )
            {
                st->hFdCngDec->hFdCngCom->seed += 3;
            }
        }
#endif

        if ( st->cldfbAna == NULL )
        {