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

Other MSAN error fixes

parent d4b35e16
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -117,6 +117,7 @@ ivas_error acelp_core_enc(
    set16_fx( old_bwe_exc_fx, 0, ( PIT16k_MAX + ( L_FRAME16k + 1 ) + L_SUBFR16k ) * 2 );
    set16_fx( old_exc_fx, 0, L_EXC );
    set16_fx( Aq, 0, NB_SUBFR16k * ( M + 1 ) );
    set16_fx( syn_fx, 0, L_FRAME16k );
#endif

    Word16 tilt_code_bck_fx;
+2 −0
Original line number Diff line number Diff line
@@ -617,6 +617,8 @@ ivas_error front_vad_create_fx(
    set16_fx( hFrontVad->buffer_12k8_fx, 0, i_mult( 3, shr( L_FRAME, 1 ) ) );
    hFrontVad->mem_preemph_fx = 0;
    move16();
    hFrontVad->q_mem_preemph_fx = 0;
    move16();
    hFrontVad->ini_frame = 0;
    move16();
    hFrontVad->hVAD->vad_flag = 1;
+8 −0
Original line number Diff line number Diff line
@@ -1621,6 +1621,14 @@ void ivas_mcmasa_param_est_enc_fx(
    Word16 surroundingCoherence_e[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS];
    Word16 numAnalysisChannels;

#ifdef MSAN_FIX
    FOR( i = 0; i < MCMASA_MAX_ANA_CHANS; i++ )
    {
        set_zero_fx( Chnl_RealBuffer_fx[i], DIRAC_NO_FB_BANDS_MAX );
        set_zero_fx( Chnl_ImagBuffer_fx[i], DIRAC_NO_FB_BANDS_MAX );
    }
#endif

    num_freq_bins = idiv1616( input_frame, MDFT_NO_COL_MAX );
    num_freq_bands = hMcMasa->nbands;
    move16();
+8 −1
Original line number Diff line number Diff line
@@ -606,10 +606,17 @@ static void kernel_switch_update_transforms_fx(
        Word32 factor;

        n = extract_l( Mpy_32_32( s, 603979776 /* N_ZERO_MDCT_NS / FRAME_SIZE_NS in Q31 */ ) );
#ifdef MSAN_FIX
        Scale_sig( &tcxTimeSignal[n - s], add(sub(shl( s, 1 ), n),1), -Q1 );                                                                                       // Q0 -> Q-1
#else
        Scale_sig( &tcxTimeSignal[n - s], shl( s, 1 ), -Q1 );                                                                                       // Q0 -> Q-1
#endif
        wtda_ext_fx( tcxTimeSignal, windowedTimeSignal_16, extract_l( windowedTimeSignal[0] ), extract_l( windowedTimeSignal[1] ), s, kernelType ); // Q-1
#ifdef MSAN_FIX
        Scale_sig( &tcxTimeSignal[n - s], add(sub(shl( s, 1 ), n),1), Q1 );                                                                                        // Q-1 -> Q0
#else
        Scale_sig( &tcxTimeSignal[n - s], shl( s, 1 ), Q1 );                                                                                        // Q-1 -> Q0

#endif
        Copy_Scale_sig_16_32_no_sat( windowedTimeSignal_16, windowedTimeSignal, s, Q16 ); // Q15
        scale_sig32( windowedTimeSignal, s, -Q8 /* guard bits */ );                       // Q7
        edxt_fx( windowedTimeSignal, sigR, s, kernelType, FALSE );
+4 −0
Original line number Diff line number Diff line
@@ -425,6 +425,10 @@ ivas_error stereo_set_tdm_fx(
                }

                fd_bwe_enc_init_fx( st->hBWE_FD );
#ifdef MSAN_FIX
                st->Q_old_wtda = 0;
                move16();
#endif
            }
        }