Commit 3f70046d authored by vaillancour's avatar vaillancour Committed by Sandesh Venkatesh
Browse files

fix reset indice for dtx case

parent a2b10d39
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -838,7 +838,11 @@ void dtx_fx(
        /* reset the bitstream (IVAS format signalling was already written) */
        IF( NE_16( st_fx->element_mode, IVAS_CPE_MDCT ) && st_fx->hBstr != NULL )
        {
#ifdef HARM_PUSH_BIT
            reset_indices_enc_fx( st_fx->hBstr, st_fx->hBstr->nb_ind_tot );
#else
            reset_indices_enc_fx( st_fx->hBstr, MAX_NUM_INDICES );
#endif
        }
    }

+8 −2
Original line number Diff line number Diff line
@@ -189,8 +189,11 @@ ivas_error encod_ppp_fx(

        /* We write signalling indices again only in case of bump_up */
        /* delete previous indices */
#ifdef HARM_PUSH_BIT
        reset_indices_enc_fx( hBstr, hBstr->nb_ind_tot );
#else
        reset_indices_enc_fx( hBstr, MAX_NUM_INDICES );

#endif
        /* signalling matrix (writing of signalling bits) */
        signalling_enc_fx( st_fx );
    }
@@ -373,8 +376,11 @@ ivas_error encod_ppp_ivas_fx(

        /* We write signalling indices again only in case of bump_up */
        /* delete previous indices */
#ifdef HARM_PUSH_BIT
        reset_indices_enc_fx( hBstr, hBstr->nb_ind_tot );
#else
        reset_indices_enc_fx( hBstr, MAX_NUM_INDICES );

#endif
        /* signalling matrix (writing of signalling bits) */
        signalling_enc_fx( st_fx );
    }