Migrating tr1 to std, adding C++11 support to build scripts, fixing crash in FFmpegReader (caused by shared_ptr, buffer, and last_video_frame corruption). Much improved stability with this change. Thanks to Craig and Peter for the help!

This commit is contained in:
Jonathan Thomas
2017-08-20 17:37:39 -05:00
parent 564664737a
commit f12ffe692b
84 changed files with 605 additions and 641 deletions

View File

@@ -71,10 +71,10 @@ int Brightness::constrain(int color_value)
// This method is required for all derived classes of EffectBase, and returns a
// modified openshot::Frame object
tr1::shared_ptr<Frame> Brightness::GetFrame(tr1::shared_ptr<Frame> frame, long int frame_number)
std::shared_ptr<Frame> Brightness::GetFrame(std::shared_ptr<Frame> frame, long int frame_number)
{
// Get the frame's image
tr1::shared_ptr<QImage> frame_image = frame->GetImage();
std::shared_ptr<QImage> frame_image = frame->GetImage();
// Get keyframe values for this frame
float brightness_value = brightness.GetValue(frame_number);