Commit 7d9ac373 authored by Jan Kiene's avatar Jan Kiene
Browse files

initialize nb_bits_metadata to zero

parent e3006d54
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -170,6 +170,7 @@
#define FIX_2274_OOB_INDEXING_IN_CORRMATRIX             /* FhG: fix OOB indexing complaint */
#define FIX_2278_OOB_INDEXING_IN_CLOSED_LOOP_PIT_SEARCH /* FhG: fix oob indexing USAN complaint */
#define FIX_2287_MCT_MDCT_STEREO_DATA_MALLOC_SIZE       /* FhG: correct allocation size for STEREO_MDCT_DEC_DATA struct */
#define FIX_1487_ACCESS_OF_UNINIT_VAL_FROM_ARR_ISM_DTX  /* FhG: init nb_bits_metadata to zero */

/* #################### End BE switches ################################## */

+4 −0
Original line number Diff line number Diff line
@@ -101,6 +101,10 @@ ivas_error ivas_jbm_dec_tc(
        }
    }

#ifdef FIX_1487_ACCESS_OF_UNINIT_VAL_FROM_ARR_ISM_DTX
    set_s( nb_bits_metadata, 0, MAX_SCE + 1 );
#endif

    /*----------------------------------------------------------------*
     * Decoding + pre-rendering
     *----------------------------------------------------------------*/