From: Tsuda Kageyu Date: Mon, 31 Aug 2015 07:20:58 +0000 (+0900) Subject: Revert "A bit more accurate calculation of the AIFF audio length." X-Git-Tag: v1.10~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60558d6a4ae41e30abd23ab23167497a89142bb7;p=taglib Revert "A bit more accurate calculation of the AIFF audio length." This reverts commit 15a1505880d27f7d58f39a78946c05c6c6aa2bda. --- diff --git a/taglib/riff/aiff/aiffproperties.cpp b/taglib/riff/aiff/aiffproperties.cpp index f074fae3..e345fb0c 100644 --- a/taglib/riff/aiff/aiffproperties.cpp +++ b/taglib/riff/aiff/aiffproperties.cpp @@ -179,7 +179,7 @@ void RIFF::AIFF::Properties::read(File *file) d->sampleRate = static_cast(sampleRate + 0.5); if(d->sampleFrames > 0 && d->sampleRate > 0) { - const double length = d->sampleFrames * 1000.0 / sampleRate; + const double length = d->sampleFrames * 1000.0 / d->sampleRate; d->length = static_cast(length + 0.5); d->bitrate = static_cast(streamLength * 8.0 / length + 0.5); }