Commit 67d612bf authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_317

parent a021682a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -151,7 +151,6 @@
#define FIX_197_CREND_INTERFACE 
#define FIX_FOR_TEST                                    /* allows tests to pass using old TD binary file, to be removed after merge*/

#define FIX_317                                         /* FhG: issue 317 - address sanitizer error in MDCT-Stereo PLC */


/* ################## End DEVELOPMENT switches ######################### */
+0 −8
Original line number Diff line number Diff line
@@ -327,19 +327,11 @@ void stereo_decoder_tcx(
                hStereoMdct->reverse_dmx = 0;
            }

#ifdef FIX_317
            if ( ( nrgRatio > 1.0f ) && ( k < ( ( core_r == TCX_10_CORE ) ? NB_DIV : 1 ) ) )
#else
            if ( ( nrgRatio > 1.0f ) && ( k < ( ( core_r == TCX_20_CORE ) ? 1 : NB_DIV ) ) )
#endif
            {
                v_multc( spec_r[k], nrgRatio, spec_r[k], L_frameTCX_r );
            }
#ifdef FIX_317
            else if ( ( nrgRatio < 1.0f ) && ( k < ( ( core_l == TCX_10_CORE ) ? NB_DIV : 1 ) ) )
#else
            else if ( ( nrgRatio < 1.0f ) && ( k < ( ( core_l == TCX_20_CORE ) ? 1 : NB_DIV ) ) )
#endif
            {
                v_multc( spec_l[k], 1.0f / nrgRatio, spec_l[k], L_frameTCX_l );
            }