Commit f8ebe373 authored by Anatoliy Anischovich's avatar Anatoliy Anischovich Committed by Rémi Denis-Courmont

audio output core: normalize tracks without replaygain peak data (fix #8165)

Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent 94a3b14c
......@@ -179,10 +179,10 @@ static float aout_ReplayGainSelect(vlc_object_t *obj, const char *str,
multiplier = pow (10., gain / 20.);
if (replay_gain->pb_peak[mode]
&& var_InheritBool (obj, "audio-replay-gain-peak-protection")
&& replay_gain->pf_peak[mode] * multiplier > 1.f)
multiplier = 1.f / replay_gain->pf_peak[mode];
if (var_InheritBool (obj, "audio-replay-gain-peak-protection"))
multiplier = fminf (multiplier, replay_gain->pb_peak[mode]
? 1.f / replay_gain->pf_peak[mode]
: 1.f);
}
/* Command line / configuration gain */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment