Updating references to frame number / position to long int, there were still quite a few old "int" declarations, which limits the length of frame number. Also, updated precision of KeyFrames to use double (instead of float) for higher precision, which fixed lots of issues with very long videos (since our FrameMapper used a KeyFrame object to create a map to new frames)

This commit is contained in:
Jonathan Thomas
2017-01-24 18:39:17 -06:00
parent f30d7018b6
commit 85ac4bf6d2
22 changed files with 68 additions and 68 deletions

View File

@@ -49,7 +49,7 @@ double Fraction::ToDouble() {
// Return a rounded integer of the frame rate (for example 30000/1001 returns 30 fps)
int Fraction::ToInt() {
return round((float) num / den);
return round((double) num / den);
}
// Calculate the greatest common denominator