From f196a8466307e3915208fd3d5e520adcb9c32ccc Mon Sep 17 00:00:00 2001 From: Markus <59919483+mave2802@users.noreply.github.com> Date: Fri, 25 Oct 2024 09:41:35 +0200 Subject: [PATCH] Fix for issue#1212 --- lib_com/options.h | 3 +++ lib_dec/tonalMDCTconcealment.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 9bdfec8eed..c4dc9fb3bc 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -184,11 +184,14 @@ #define NONBE_FIX_1176_OSBA_REVERB_JBM_ASAN_ERROR /* Ericsson: Issue 1176, fix in TDREND_firfilt for subframes shorter than the filter length */ #define NONBE_FIX_1197_OMASA_META_BUFFER /* Nokia: OMASA ISM_MASA_MODE_PARAM_ONE_OBJ history zero in rateswitching */ +#define NONBE_FIX_1212_TONAL_MDCT_CONCEALMENT /* FhG: Fix issue 1212, zero IGF spec also in 1st concealed frame */ + #define FIX_1139_REV_COLORATION_SHORT_T60 /* Nokia,FhG: Fix issue 1139, prevent sound coloration artefacts at very low reverberation times */ #define NONBE_FIX_1208_DFT_STEREO_PLC_BURST /* Ericsson: Issue 1208, fix for overflow of sample offset counter for burst error in DFT Stereo PLC. */ #define FIX_1206_ZERO_OUT_IMDCT_BUFFERS_FOR_MCT_IGNORE /* FhG: zero out all relevant imdct buffers in MCT decoding of channels with mct_chan_mode == MCT_CHAN_MODE_IGNORE */ + /* ##################### End NON-BE switches ########################### */ /* ################## End DEVELOPMENT switches ######################### */ diff --git a/lib_dec/tonalMDCTconcealment.c b/lib_dec/tonalMDCTconcealment.c index 9ed4a298e6..12b5236964 100644 --- a/lib_dec/tonalMDCTconcealment.c +++ b/lib_dec/tonalMDCTconcealment.c @@ -545,7 +545,11 @@ void TonalMDCTConceal_InsertNoise( for ( l = crossOverFreq; l < hTonalMDCTConc->lastBlockData.nSamples; l++ ) { +#ifdef NONBE_FIX_1212_TONAL_MDCT_CONCEALMENT + mdctSpectrum[l] = 0.0f; +#else mdctSpectrum[l] = hTonalMDCTConc->lastBlockData.spectralData[l]; +#endif } } /* actual fadeout is done in this case */ -- GitLab