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

@@ -42,7 +42,7 @@ namespace openshot
}
// Get the currently playing frame number (if any)
int VideoCacheThread::getCurrentFramePosition()
long int VideoCacheThread::getCurrentFramePosition()
{
if (frame)
return frame->number;
@@ -51,13 +51,13 @@ namespace openshot
}
// Set the currently playing frame number (if any)
void VideoCacheThread::setCurrentFramePosition(int current_frame_number)
void VideoCacheThread::setCurrentFramePosition(long int current_frame_number)
{
current_display_frame = current_frame_number;
}
// Seek the reader to a particular frame number
void VideoCacheThread::Seek(int new_position)
void VideoCacheThread::Seek(long int new_position)
{
position = new_position;
}