diff --git a/taglib/trueaudio/trueaudioproperties.cpp b/taglib/trueaudio/trueaudioproperties.cpp index 1e4e87d3..c52a13ef 100644 --- a/taglib/trueaudio/trueaudioproperties.cpp +++ b/taglib/trueaudio/trueaudioproperties.cpp @@ -143,7 +143,7 @@ void TrueAudio::Properties::read() pos += 4; 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; }