replay_gain_info: fix indentation

This commit is contained in:
Max Kellermann 2010-07-20 20:37:36 +02:00
parent 6135419ac3
commit fb19aa355e

View File

@ -25,19 +25,16 @@ replay_gain_tuple_scale(const struct replay_gain_tuple *tuple, float preamp, flo
{ {
float scale; float scale;
if (replay_gain_tuple_defined(tuple)) if (replay_gain_tuple_defined(tuple)) {
{
scale = pow(10.0, tuple->gain / 20.0); scale = pow(10.0, tuple->gain / 20.0);
scale *= preamp; scale *= preamp;
if (scale > 15.0) if (scale > 15.0)
scale = 15.0; scale = 15.0;
if (peak_limit) if (peak_limit && scale * tuple->peak > 1.0)
if (scale * tuple->peak > 1.0)
scale = 1.0 / tuple->peak; scale = 1.0 / tuple->peak;
} else { } else
scale = missing_preamp; scale = missing_preamp;
}
return scale; return scale;
} }