Commit 187a7f23 authored by multrus's avatar multrus
Browse files

BASOP issue 2522: Fix copy and paste error for side_gain calculation in...

BASOP issue 2522: Fix copy and paste error for side_gain calculation in map_params_dirac_to_stereo()
parent a8ff39cd
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -129,6 +129,7 @@
#define FIX_BASOP_2513_EXTRA_RETURN_REND_OPEN           /* Nokia: BASOP issue 2513: Removes extra return block */
#define FIX_BASOP_2514_EFAP_PORTING_ERROR               /* Nokia: BASOP issue 2514: Fix wrongly ported line */
#define FIX_BASOP_2516_REND_CUSTOM_LAYOUT_PORT_BUG      /* Nokia: BASOP issue 2516: Fix porting bug in setting planar state for custom layout in renderer */
#define FIX_BASOP_2522_MAP_PARAMS_DIRAC_STEREO          /* FhG: BASOP issue 2522: Fix copy and paste error for side_gain calculation in map_params_dirac_to_stereo() */

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

+4 −0
Original line number Diff line number Diff line
@@ -645,7 +645,11 @@ static void map_params_dirac_to_stereo(
            move32();
            IF( q_sqrt )
            {
#ifdef FIX_BASOP_2522_MAP_PARAMS_DIRAC_STEREO
                side_gain[b + STEREO_DFT_BAND_MAX] = L_shl( side_gain[b + STEREO_DFT_BAND_MAX], q_sqrt ); /*Q31*/
#else
                side_gain[b + STEREO_DFT_BAND_MAX] = L_shl( side_gain[b], q_sqrt ); /*Q31*/
#endif
                q_sqrt = 0;
                move16();
            }