You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user