You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Big update! Updating all "long int" frame number types to int64_t, so all 3 OSes will produce the same depth and precision on frame numbers. Also removing variable bitrate support temporarily, since it causes more problems than it solves.
This commit is contained in:
@@ -42,7 +42,7 @@ namespace openshot
|
||||
}
|
||||
|
||||
// Get the currently playing frame number (if any)
|
||||
long int VideoCacheThread::getCurrentFramePosition()
|
||||
int64_t VideoCacheThread::getCurrentFramePosition()
|
||||
{
|
||||
if (frame)
|
||||
return frame->number;
|
||||
@@ -51,13 +51,13 @@ namespace openshot
|
||||
}
|
||||
|
||||
// Set the currently playing frame number (if any)
|
||||
void VideoCacheThread::setCurrentFramePosition(long int current_frame_number)
|
||||
void VideoCacheThread::setCurrentFramePosition(int64_t current_frame_number)
|
||||
{
|
||||
current_display_frame = current_frame_number;
|
||||
}
|
||||
|
||||
// Seek the reader to a particular frame number
|
||||
void VideoCacheThread::Seek(long int new_position)
|
||||
void VideoCacheThread::Seek(int64_t new_position)
|
||||
{
|
||||
position = new_position;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user