Commit 22d7dc7e authored by PLAINSI's avatar PLAINSI
Browse files

Compensate loudness

parent 065d8114
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -176,6 +176,7 @@
#define NONBE_FIX_770_PLANAR_SBA_JBM                          /* FhG  : Issue #770: Crash in planar FOA decoding with JBM caused by uninitialized value */
#define NONBE_FIX_760_COHERENCE_MASA                          /* Nokia: Issue 760: fixes decoder crash for some cases when all energy ratios are 1 */
#define NONBE_FIX_752_OSBA_MISCONFIG_MCT                      /* FhG: issue 752: misconfiguration of MCT causes crashes for coding with sampling rate under 48kHz at 256kbps*/
#define NONBE_FIX_787_PARAM_UPMIX_LEVEL                       /* Dlb: issue 787: fix level of Mono/Stereo for ParamUpmix mode */

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

+7 −0
Original line number Diff line number Diff line
@@ -216,6 +216,13 @@ void ivas_mc_paramupmix_dec(
    if ( ( output_config == AUDIO_CONFIG_STEREO ) || ( output_config == AUDIO_CONFIG_MONO ) )
    {
        first_empty_channel = 8; /* Don't upmix */
#ifdef NONBE_FIX_787_PARAM_UPMIX_LEVEL
        /* Compensate loudness for not doing full upmix */
        for ( i = 4; i < 8; i++ )
        {
            v_multc( output_f[i], 2.0f, output_f[i], L_FRAME48k );
        }
#endif
    }
    else
    {