Commit 1bcd62a0 authored by fotopoulou's avatar fotopoulou
Browse files

proposed fix for 1604

parent 1cf94238
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@

#define FIX_1576_LCLD_CRASH_DIFFERENT_CODEC_ISAR_FRAME_SIZE  /* Dolby: float issue 1576: fix for crash in LCLD mode when codec frame size is less than isar frame size */
#define FIX_FLOAT_1600_OMASA_WRONG_RENDER_PATH          /* Nokia: float issue 1600: fix initialization condition of stereo type detection for OMASA */
#define FIX_1604_TRIG_PRECISION_DFT_STEREO              /* FhG: change trigonometric precision for DFT stereo calculations */

/* ##################### End NON-BE switches ########################### */

+5 −1
Original line number Diff line number Diff line
@@ -1326,9 +1326,13 @@ void stereo_dft_enc_process(
            s = 0.f; /*sin(0)*/

            alpha_tmp = alpha;
#ifndef FIX_1604_TRIG_PRECISION_DFT_STEREO
            c1 = cosf( alpha_tmp );
            s1 = sinf( alpha_tmp );

#else
            c1 = cos( alpha_tmp );
            s1 = sin( alpha_tmp );
#endif
            if ( alpha >= 0 )
            {
                for ( i = 1; i < hStereoDft->NFFT / 2; i++ )