Commit 91cf7dce authored by TYAGIRIS's avatar TYAGIRIS
Browse files

fix for CNG issue in DTX frames in SBA 2TC modes

parent e4226ae3
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@

#define FIX_401_DIRAC_RENDERER_META_READ_INDICES        /* Nokia: Issue 401: Fix metadata reading indices in DirAC renderer. */
#define FIX_406_IVAS_POSITION                           /* Eri: Issue 406: Unify IVAS_POSITION to use IVAS_VECTOR3 instead */
#define FIX_413_SBA_DTX                                 /*Dlb: Fix for issue 413, SBA DTX CNG in 2TC mode*/

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
+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 )
        {