diff options
author | Tsuda Kageyu <tsuda.kageyu@gmail.com> | 2015-08-31 01:48:29 +0900 |
---|---|---|
committer | Tsuda Kageyu <tsuda.kageyu@gmail.com> | 2015-08-31 01:48:29 +0900 |
commit | 15a1505880d27f7d58f39a78946c05c6c6aa2bda (patch) | |
tree | 71bc4c613bcb9ed44597d1e941bf7cf1d4403b68 | |
parent | fbd3b71690cedd70b9175d55a1e089aaca748046 (diff) |
A bit more accurate calculation of the AIFF audio length.
-rw-r--r-- | taglib/riff/aiff/aiffproperties.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/taglib/riff/aiff/aiffproperties.cpp b/taglib/riff/aiff/aiffproperties.cpp index e345fb0c..f074fae3 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<int>(sampleRate + 0.5); if(d->sampleFrames > 0 && d->sampleRate > 0) { - const double length = d->sampleFrames * 1000.0 / d->sampleRate; + const double length = d->sampleFrames * 1000.0 / sampleRate; d->length = static_cast<int>(length + 0.5); d->bitrate = static_cast<int>(streamLength * 8.0 / length + 0.5); } |