Commit 09bba6f4 authored by Vidhya V P's avatar Vidhya V P
Browse files

Resolving MSAN and USAN errors for the added test case

parent a872bd75
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@
#define FIX_712_713_SPLIT_REND_MASA_MC                 /*Dlb : Fix for issue 712 and 713*/
#endif
#define REMOVE_UNUSED_FUNCTION                          /* Dlb: Remove functions that are unhit/unused */

#define FIX_MSAN_USAN_ERROR_JBM                         /* Dlb: Resolve MSAN and USAN errors in the SBA-JBM test case added*/

#define FIX_708_DPID_COMMAND_LINE                       /* issue 708: sanity checks for '-dpid' command-line */
#define FIX_513_REND_MC_ALLOC                           /* FhG: issue 513, optimise external renderer allocation for multichannel */
+4 −0
Original line number Diff line number Diff line
@@ -1587,7 +1587,11 @@ void ivas_spar_param_to_masa_param_mapping(
    for ( slot_idx = 0; slot_idx < hSpar->subframe_nbslots[subframe]; slot_idx++ )
    {
        sf = hSpar->render_to_md_map[slot_idx + slot_idx_start] / JBM_CLDFB_SLOTS_IN_SUBFRAME;
#ifndef FIX_MSAN_USAN_ERROR_JBM
        if ( subframe < SPAR_META_DELAY_SUBFRAMES )
#else
        if ( ( subframe < SPAR_META_DELAY_SUBFRAMES ) && ( sf < 2 ) )
#endif
        {
            mixer_mat_index = sf + MAX_PARAM_SPATIAL_SUBFRAMES - SPAR_META_DELAY_SUBFRAMES + 1;
            for ( band = 0; band < SPAR_DIRAC_SPLIT_START_BAND; band++ )
+4 −1
Original line number Diff line number Diff line
@@ -205,8 +205,11 @@ int16_t JB4_JMF_PushPacket(
        h->lastRtpTimeStamp = rtpTimeStamp;
        return 0;
    }

#ifndef FIX_MSAN_USAN_ERROR_JBM
    rtpTimeDiff = rtpTimeStamp - h->lastRtpTimeStamp;
#else
    rtpTimeDiff = (int32_t) ( rtpTimeStamp - h->lastRtpTimeStamp );
#endif
    sysTimeDiff = sysTime - h->lastSysTime;
    offset = sysTime - rtpTimeStamp;