Commit 652e1ce2 authored by vasilache's avatar vasilache
Browse files

Merge branch...

Merge branch '1004-usan-implicit-conversion-from-signed-to-unsigned-integer-changes-value-in-ivas_masa_dec-c' into 'main'

[non-be] Fix issue 1004 in ivas_masa_dec()

See merge request !1418
parents c4a30a32 415e01d5
Loading
Loading
Loading
Loading
Loading

lib_com/options.h

100755 → 100644
+1 −0
Original line number Diff line number Diff line
@@ -181,6 +181,7 @@
#define NONBE_FIX_1005_MC_RS_TCBUFFER_UPDATE                  /* FhG: issue #1005: fix TC Buffer update at a MC rate switch */
#define NONBE_FIX_864_JBM_RENDER_FRAMESIZE                    /* FhG: issue #864: fix different behaviour of JBM TSM with different render frame sizes */
#define NONBE_FIX_1012_1013_JBM_FLUSH_BUFFER                  /* FhG: issues #1012, 1013: JBM flush function uses wrong output buffer */
#define NONBE_FIX_1004_USAN_DTX_MASA_NO_DIRS                  /* Nokia: fix USAN error caused by non-setting of correctly the number of MASA directions in DTX */
/* ##################### End NON-BE switches ########################### */

/* ################## End DEVELOPMENT switches ######################### */
+7 −0
Original line number Diff line number Diff line
@@ -142,6 +142,13 @@ ivas_error ivas_masa_decode(
        st->next_bit_pos = (int16_t) ( ( masa_brate / FRAMES_PER_SEC ) - 1 );
    }

#ifdef NONBE_FIX_1004_USAN_DTX_MASA_NO_DIRS
    if ( ivas_format == MASA_FORMAT && ( masa_brate == IVAS_SID_5k2 || ivas_total_brate == FRAME_NO_DATA ) )
    {
        hMasa->config.numberOfDirections = 1;
    }
#endif

    if ( !st->bfi && ivas_total_brate > IVAS_SID_5k2 )
    {
        if ( !( ivas_format == MC_FORMAT && st_ivas->mc_mode == MC_MODE_MCMASA ) )