aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qmmp/replaygain.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qmmp/replaygain.cpp b/src/qmmp/replaygain.cpp
index 86da8c759..7fc77d7fc 100644
--- a/src/qmmp/replaygain.cpp
+++ b/src/qmmp/replaygain.cpp
@@ -132,7 +132,7 @@ qint64 ReplayGain::read(Decoder *decoder, char *data, qint64 size)
{
for (qint64 i = 0; i < samples; i++)
{
- ((qint32*)data)[i] = qBound((double)(-(1U << 23)),
+ ((qint32*)data)[i] = qBound(-(double)(1U << 23),
((qint32*)data)[i] * m_scale,
(double)((1U << 23) - 1));
}
@@ -142,7 +142,7 @@ qint64 ReplayGain::read(Decoder *decoder, char *data, qint64 size)
{
for (qint64 i = 0; i < samples; i++)
{
- ((qint32*)data)[i] = qBound((double)(-(1U << 31)),
+ ((qint32*)data)[i] = qBound(-(double)(1U << 31),
((qint32*)data)[i] * m_scale,
(double)((1U << 31) - 1));
}