ReplayGainInfo: use large negative value instead of infinity

The last piece to allow -ffast-math.
This commit is contained in:
Max Kellermann
2013-10-30 18:01:45 +01:00
parent 55868eecd0
commit 90c899407a
2 changed files with 4 additions and 4 deletions

View File

@@ -23,8 +23,6 @@
#include "check.h"
#include "Compiler.h"
#include <cmath>
enum ReplayGainMode {
REPLAY_GAIN_AUTO = -2,
REPLAY_GAIN_OFF,
@@ -37,13 +35,13 @@ struct ReplayGainTuple {
float peak;
void Clear() {
gain = INFINITY;
gain = -200;
peak = 0.0;
}
gcc_pure
bool IsDefined() const {
return !std::isinf(gain);
return gain > -100;
}
gcc_pure