mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Correct length calculation
This commit is contained in:
parent
3dc37a482e
commit
fb71d7341a
@ -46,7 +46,8 @@ public:
|
||||
if(info && (value = info->getChild(Constants::Duration))) {
|
||||
length = static_cast<int>(value->getAsFloat());
|
||||
if((value = info->getChild(Constants::TimecodeScale))){
|
||||
length /= (value->getAsUnsigned() / 1000);}
|
||||
length /= (value->getAsUnsigned() * (1 / 1000000000));
|
||||
}
|
||||
}
|
||||
|
||||
info = elem->getChild(Constants::Tracks);
|
||||
|
Loading…
x
Reference in New Issue
Block a user