mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
replaygain_synthesis.c : Replace float literal with double literal.
The variable its multipled by is double so there is no sense in having the literal as a float. Patch-from: lvqcl <lvqcl.mail@gmail.com>
This commit is contained in:
@@ -413,7 +413,7 @@ size_t FLAC__replaygain_synthesis__apply_gain(FLAC__byte *data_out, FLAC__bool l
|
||||
else if(sample > 0.5)
|
||||
sample = tanh((sample - 0.5) / (1-0.5)) * (1-0.5) + 0.5;
|
||||
}
|
||||
sample *= 2147483647.f;
|
||||
sample *= 2147483647.;
|
||||
|
||||
val64 = dither_output_(dither_context, do_dithering, noise_shaping, (i + last_history_index) % 32, sample, channel) / conv_factor;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user