You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Improved support for missing frames and invalid PTS (which result in gaps and duplicate frames). Also changed frame number to larger data type, and did some code clean-up and refactoring. Less crashes, and more video support!
This commit is contained in:
@@ -110,7 +110,7 @@ tr1::shared_ptr<QImage> Mask::get_grayscale_mask(tr1::shared_ptr<QImage> mask_fr
|
||||
|
||||
// This method is required for all derived classes of EffectBase, and returns a
|
||||
// modified openshot::Frame object
|
||||
tr1::shared_ptr<Frame> Mask::GetFrame(tr1::shared_ptr<Frame> frame, int frame_number)
|
||||
tr1::shared_ptr<Frame> Mask::GetFrame(tr1::shared_ptr<Frame> frame, long int frame_number)
|
||||
{
|
||||
// Get the mask image (from the mask reader)
|
||||
tr1::shared_ptr<QImage> frame_image = frame->GetImage();
|
||||
@@ -265,7 +265,7 @@ void Mask::SetJsonValue(Json::Value root) {
|
||||
}
|
||||
|
||||
// Get all properties for a specific frame
|
||||
string Mask::PropertiesJSON(int requested_frame) {
|
||||
string Mask::PropertiesJSON(long int requested_frame) {
|
||||
|
||||
// Requested Point
|
||||
Point requested_point(requested_frame, requested_frame);
|
||||
|
||||
Reference in New Issue
Block a user