Commit d53daaae authored by Arash Azizi's avatar Arash Azizi
Browse files

issue 2622: Creating switch and some lines for debugging. still not complete.

parent 5440e481
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -99,6 +99,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_BASOP_2442_MASA2TC_TO_MONO_AND_AMBI         /* Nokia: BASOP issue 2442: Increase accuracy of computations and add additional gain clamp for low energy decorrelated signal rendering. */
#define FIX_FMSW_DEC_EXT                                /* float issue 1566: fix EXT output in format switching */
#define DEBUG_ISSUE_2622_MISS_SUM                       /* FhG: debugging issue 2622: Missing sum in function stereo_dft_enc_update()*/

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

+4 −0
Original line number Diff line number Diff line
@@ -889,6 +889,10 @@ void stereo_dft_enc_update_fx(
    Word16 exp;
    tmp = BASOP_Util_Divide3232_Scale_newton( tmp, hStereoDft->NFFT, &exp );
    hStereoDft->res_cod_line_max = extract_l( L_shr( tmp, sub( 31, exp ) ) );
#ifdef DEBUG_ISSUE_2622_MISS_SUM
    Word32 tmp2 = add(tmp >> (31-exp))

#endif // DEBUG_ISSUE_2622_MISS_SUM
    move16();
    // hStereoDft->res_cod_line_max = 8 * (hStereoDft->res_cod_line_max / 8);
    hStereoDft->res_cod_line_max = shl( shr( hStereoDft->res_cod_line_max, 3 ), 3 );