mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Don't overflow for really high bitrate files.
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@794711 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
parent
bbfcc84dec
commit
a724586b43
@ -146,5 +146,5 @@ void FLAC::Properties::read()
|
||||
|
||||
// Real bitrate:
|
||||
|
||||
d->bitrate = d->length > 0 ? ((d->streamLength * 8L) / d->length) / 1000 : 0;
|
||||
d->bitrate = d->length > 0 ? ((d->streamLength * 8UL) / d->length) / 1000 : 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user