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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user