Correct length calculation

This commit is contained in:
Sebastian Rachuj 2013-04-19 15:24:52 +02:00
parent 3dc37a482e
commit fb71d7341a

View File

@ -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);