Commit 52c98dbd authored by norvell's avatar norvell
Browse files

Fix A->Amax in if-statement in HQ classifier

parent c498803c
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -574,7 +574,7 @@ static int16_t hf_spectrum_sparseness(
        crest_mod = 0.0f;
        maximum( A, L_SPEC_HB, &Amax );
#ifdef NONBE_1233_HQ_CLASSIFIER_DIV_BY_ZERO
        if ( A == 0 )
        if ( Amax == 0 )
        {
            /* For all-zero input the crest is 1.0 */
            crest = 1.0f;