Commit 01f89d09 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix incorrect bandwidth in ISM comfort noise

parent dd187ac5
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -165,6 +165,7 @@
#define FIX_392_LATE_REVERB                             /* DLB : Issue 392: keep late reverb by default off when output config is not BINAURAL_ROOM*/

#define FIX_ISM_DTX_CLICKS                              /* FhG: fix for clicks in ISM DTX for inactive to active TCX transitions */
#define FIX_ISM_DTX_CNG_BWIDTH                          /* FhG: fix for bw changes on CNG frames in ISM DTX for objects that use the decoder-side noise estimation */

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
+11 −0
Original line number Diff line number Diff line
@@ -89,7 +89,18 @@ void ivas_decision_matrix_dec(

                if ( st->cng_type == FD_CNG )
                {
#ifdef FIX_ISM_DTX_CNG_BWIDTH
                    int16_t bwidth;

                    /* do not set bandwidth for objects in ISM DTX that run their noise estimation in the decoder */
                    bwidth = get_next_indice( st, 2 );
                    if ( st->read_sid_info )
                    {
                        st->bwidth = bwidth;
                    }
#else
                    st->bwidth = get_next_indice( st, 2 );
#endif
                }
            }
            if ( get_next_indice( st, 1 ) )