Commit a6574b34 authored by vasilache's avatar vasilache
Browse files

fix issue 1004 in ivas_masa_dec()

parent c3148745
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -181,7 +181,7 @@
#endif

#define NONBE_FIX_984_OMASA_EXT_OUTPUT                        /* Nokia: issue #984: complete the OMASA EXT output implementation */

#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 ######################### */
+6 −0
Original line number Diff line number Diff line
@@ -136,6 +136,12 @@ ivas_error ivas_masa_decode(
    if ( masa_brate == IVAS_SID_5k2 )
    {
        st->next_bit_pos = (int16_t) ( ( masa_brate / FRAMES_PER_SEC ) - 1 - SID_FORMAT_NBITS );
#ifdef NONBE_FIX_1004_USAN_DTX_MASA_NO_DIRS
        if ( ivas_format == MASA_FORMAT )
        {
            hMasa->config.numberOfDirections = 1;
        }
#endif
    }
    else
    {