Commit 66f038fa authored by multrus's avatar multrus
Browse files

potential patch for valgrind issue

parent 47d5fc30
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -152,6 +152,7 @@
#define SBA_BR_SWITCHING                                /* Issue 114: Changes for sba bit rate switching*/
#define FIX_AGC_WINFUNC_MEMORY                          /* Issue 62: lower agc_com.winFunc memory consumption */
#define REMOVE_SID_HARM_LEFTOVERS                       /* Issue 192: remove leftovers from the SID bitrate harmonization */
#define FIX_MCT_UNINIT_MEM                              /* Issue 166: Reading of uninitialized memory in TCX range coder */


/* ################## End DEVELOPMENT switches ######################### */
+4 −0
Original line number Diff line number Diff line
@@ -1055,7 +1055,11 @@ void ivas_mdct_core_whitening_enc(
        {
            st->side_bits_frame_channel = 0;
            /*dummy initialization to prevent range coder crashing in case all channels are silent and bits are distributed to channel 0 */
#ifdef FIX_MCT_UNINIT_MEM
            *p_param[ch] = 1 + NOISE_FILL_RANGES + LTPSIZE + tnsSize[ch][0] + NPRM_CTX_HM;
#else
            *p_param[ch] = 9;
#endif
            continue;
        }