Conflicts:
taglib/riff/aiff/aiffproperties.cpp
taglib/trueaudio/trueaudioproperties.cpp
tests/test_wav.cpp
d->sampleRate = d->data.mid(pos, 4).toUInt(false);
pos += 4;
- uint sampleFrames = d->data.mid(pos, 4).toUInt(false);
- d->length = d->sampleRate > 0 ? sampleFrames / d->sampleRate : 0;
+ d->sampleFrames = d->data.mid(pos, 4).toUInt(false);
- d->length = d->sampleFrames / d->sampleRate;
++ d->length = d->sampleRate > 0 ? d->sampleFrames / d->sampleRate : 0;
d->bitrate = d->length > 0 ? ((d->streamLength * 8L) / d->length) / 1000 : 0;
}