Commit a68feba5 authored by Jan Kiene's avatar Jan Kiene
Browse files

force CNG coherence to zero in decoder

parent 4a761414
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2296,6 +2296,7 @@ void FdCngDecodeMDCTStereoSID(
        uint16_t tmp_bit;

        tmp_bit = get_next_indice( sts[1], 4 );
        tmp_bit = 0;
        sts[0]->hFdCngDec->hFdCngCom->coherence[b] = (float) tmp_bit / 15.f;
        sts[1]->hFdCngDec->hFdCngCom->coherence[b] = sts[0]->hFdCngDec->hFdCngCom->coherence[b];
    }
+1 −0
Original line number Diff line number Diff line
@@ -106,6 +106,7 @@ void ivas_decision_matrix_dec(
            /* read channel coherence */
#ifdef NONBE_MDCT_ST_DTX_FIX_SUBOPT_SPATIAL_CNG
            st->hFdCngDec->hFdCngCom->coherence[0] = (float) get_next_indice( st, 4 ) / 15.f;
            st->hFdCngDec->hFdCngCom->coherence[0] = 0.0f;
#else
            st->hFdCngDec->hFdCngCom->coherence = (float) get_next_indice( st, 4 ) / 15.f;
#endif