Commit 00d1268d authored by vasilache's avatar vasilache
Browse files

change in issue 1004

parent 96124595
Loading
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -136,18 +136,19 @@ 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
    {
        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 ) )