From 22c3717e178bedee7274d18f660ac1690b878a7d Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 9 Oct 2013 11:33:12 +0000 Subject: fixed regression git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3757 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/replaygain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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)); } -- cgit v1.2.3-13-gbd6f