From fb19aa355e566898fcb18bf3a5700a8e5f236696 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 20 Jul 2010 20:37:36 +0200 Subject: [PATCH] replay_gain_info: fix indentation --- src/replay_gain_info.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/replay_gain_info.c b/src/replay_gain_info.c index 66f46def2..3b4ab4577 100644 --- a/src/replay_gain_info.c +++ b/src/replay_gain_info.c @@ -25,19 +25,16 @@ replay_gain_tuple_scale(const struct replay_gain_tuple *tuple, float preamp, flo { float scale; - if (replay_gain_tuple_defined(tuple)) - { - scale = pow(10.0, tuple->gain / 20.0); - scale *= preamp; - if (scale > 15.0) - scale = 15.0; + if (replay_gain_tuple_defined(tuple)) { + scale = pow(10.0, tuple->gain / 20.0); + scale *= preamp; + if (scale > 15.0) + scale = 15.0; - if (peak_limit) - if (scale * tuple->peak > 1.0) + if (peak_limit && scale * tuple->peak > 1.0) scale = 1.0 / tuple->peak; - } else { + } else scale = missing_preamp; - } return scale; }