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:
Jonathan Thomas
2017-09-28 16:03:01 -05:00
parent db740765a1
commit c95db460d6
82 changed files with 479 additions and 471 deletions

View File

@@ -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;
}