Commit 768ee127 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

EVS encoder bitexactness failure fix

parent 437133dc
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2536,8 +2536,8 @@ static void shb_CNG_encod_fx(

        st->hTdCngEnc->last_idx_ener = idx_ener;
#endif
        push_indice( hBstr, IND_SHB_CNG_GAIN, idx_ener_fx, 4 );
        push_indice( hBstr, IND_SID_BW, 1, 1 );
        push_indice_fx( hBstr, IND_SHB_CNG_GAIN, idx_ener_fx, 4 );
        push_indice_fx( hBstr, IND_SID_BW, 1, 1 );
#ifndef IVAS_CODE
        hBstr->nb_bits_tot = sub( hBstr->nb_bits_tot, hBstr->ind_list[IND_CNG_ENV1].nb_bits );
        hBstr->ind_list[IND_CNG_ENV1].nb_bits = -1;
@@ -2553,7 +2553,7 @@ static void shb_CNG_encod_fx(
        else
#endif
        {
            push_indice( hBstr, IND_UNUSED, 0, 2 );
            push_indice_fx( hBstr, IND_UNUSED, 0, 2 );
        }
        hTdCngEnc->ho_sid_bw = L_shl( L_and( hTdCngEnc->ho_sid_bw, (Word32) 0x3fffffffL ), 1 );
        hTdCngEnc->ho_sid_bw = L_or( hTdCngEnc->ho_sid_bw, 0x1L );
@@ -2563,7 +2563,7 @@ static void shb_CNG_encod_fx(
        IF( EQ_32( st_fx->core_brate, SID_2k40 ) )
        {
            hTdCngEnc->ho_sid_bw = L_shl( L_and( hTdCngEnc->ho_sid_bw, (Word32) 0x3fffffffL ), 1 );
            push_indice( hBstr, IND_SID_BW, 0, 1 );
            push_indice_fx( hBstr, IND_SID_BW, 0, 1 );
        }
    }