Commit d050fd12 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch 'port-fix-for-float-issue-920' into 'ivas-float-update'

[float fix] port fix for float issue 920

See merge request !907
parents f7ef6000 873e7796
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -175,6 +175,7 @@
#define NONBE_1211_DTX_BR_SWITCHING                     /* VA: port float issue 1211: fix crash in MASA DTX bitrate switching */
#define NONBE_FIX_1189_GSC_IVAS_OMASA                   /* VA: Fix for issue 1189: Bitstream desynchornization due to reading/writing of the GSC_IVAS_mode parameter */
#define NONBE_FIX_1087_OOB_SBA_DTX_RS                   /* VA: issue 1087: Extend the length of the buffer for MCT decoding to avoid out-of-bound writing in SBA SID bitrate switching decoding */
#define FIX_920_IGF_INIT_ERROR                          /* FhG: issue 920: fix bitrate mismatch in initial IGF config to avoid error message in same cases */
/* #################### End FIXES switches ############################ */

#define BASOP_NOGLOB                                    /* Disable global symbols in BASOPs, Overflow/Carry in BASOPs disabled, additional BASOPs in case of Overflow */
+4 −1
Original line number Diff line number Diff line
@@ -6762,6 +6762,9 @@ float correlation_shift(
void init_coder_ace_plus(
    Encoder_State *st,              /* i  : Encoder state handle                */
    const int32_t last_total_brate, /* i  : last total bitrate                  */
#ifdef FIX_920_IGF_INIT_ERROR
    const int32_t igf_brate, /* i  : IGF configuration bitrate           */
#endif
    const int16_t MCT_flag /* i  : hMCT handle allocated (1) or not (0)*/
);

+8 −1
Original line number Diff line number Diff line
@@ -64,6 +64,9 @@ static void init_modes( Encoder_State *st, const int32_t last_total_brate );
void init_coder_ace_plus(
    Encoder_State *st,              /* i  : Encoder state                          */
    const int32_t last_total_brate, /* i  : last total bitrate                     */
#ifdef FIX_920_IGF_INIT_ERROR
    const int32_t igf_brate, /* i  : IGF configuration bitrate              */
#endif
    const int16_t MCT_flag /* i  : hMCT handle allocated (1) or not (0)   */
)
{
@@ -154,7 +157,11 @@ void init_coder_ace_plus(

    if ( st->igf && st->hIGFEnc != NULL )
    {
#ifdef FIX_920_IGF_INIT_ERROR
        IGFEncSetMode( st->hIGFEnc, igf_brate, st->bwidth, st->element_mode, st->rf_mode );
#else
        IGFEncSetMode( st->hIGFEnc, st->total_brate, st->bwidth, st->element_mode, st->rf_mode );
#endif
    }
    else if ( st->hIGFEnc != NULL )
    {
+4 −0
Original line number Diff line number Diff line
@@ -152,7 +152,11 @@ void core_coder_mode_switch(
    else
    {
        st->igf = getIgfPresent( st->element_mode, st->total_brate, st->bwidth, st->rf_mode );
#ifdef FIX_920_IGF_INIT_ERROR
        init_coder_ace_plus( st, last_total_brate, st->total_brate, MCT_flag );
#else
        init_coder_ace_plus( st, last_total_brate, MCT_flag );
#endif
    }

    if ( st->igf && st->hBWE_TD != NULL )
+4 −0
Original line number Diff line number Diff line
@@ -825,7 +825,11 @@ ivas_error init_encoder(
    set_f( st->totalNoise_increase_hist, 0.f, TOTALNOISE_HIST_SIZE );
    st->totalNoise_increase_len = 0;

#ifdef FIX_920_IGF_INIT_ERROR
    init_coder_ace_plus( st, st->last_total_brate, igf_brate, 0 /* initialization value */ );
#else
    init_coder_ace_plus( st, st->last_total_brate, 0 /* initialization value */ );
#endif

    /*-----------------------------------------------------------------*
     * FD-CNG encoder