You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
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:
@@ -29,7 +29,7 @@
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <queue>
|
||||
#include <tr1/memory>
|
||||
#include <memory>
|
||||
#include "../../include/OpenShot.h"
|
||||
#include <omp.h>
|
||||
#include <time.h>
|
||||
@@ -99,7 +99,7 @@ int main(int argc, char *argv[])
|
||||
int x = 0;
|
||||
while (true)
|
||||
{
|
||||
tr1::shared_ptr<Frame> f = t.GetFrame(x);
|
||||
std::shared_ptr<Frame> f = t.GetFrame(x);
|
||||
if (f)
|
||||
{
|
||||
if (x != 0 && x % 30 == 0)
|
||||
@@ -183,7 +183,7 @@ int main(int argc, char *argv[])
|
||||
// Image Reader
|
||||
// ImageReader r1("/home/jonathan/Pictures/Screenshot from 2013-02-10 15:06:38.png");
|
||||
// r1.Open();
|
||||
// tr1::shared_ptr<Frame> f1 = r1.GetFrame(1);
|
||||
// std::shared_ptr<Frame> f1 = r1.GetFrame(1);
|
||||
// r1.Close();
|
||||
// f1->TransparentColors("#8fa09a", 20.0);
|
||||
// f1->Display();
|
||||
@@ -191,7 +191,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
// ImageReader r2("/home/jonathan/Pictures/trees.jpg");
|
||||
// r2.Open();
|
||||
// tr1::shared_ptr<Frame> f2 = r2.GetFrame(1);
|
||||
// std::shared_ptr<Frame> f2 = r2.GetFrame(1);
|
||||
// r2.Close();
|
||||
|
||||
// DecklinkReader dr(1, 11, 0, 2, 16);
|
||||
@@ -207,7 +207,7 @@ int main(int argc, char *argv[])
|
||||
// if (x % 30 == 0)
|
||||
// cout << "30 frames..." << endl;
|
||||
//
|
||||
// tr1::shared_ptr<Frame> f = dr.GetFrame(0);
|
||||
// std::shared_ptr<Frame> f = dr.GetFrame(0);
|
||||
// if (f)
|
||||
// {
|
||||
// //f->Display();
|
||||
|
||||
Reference in New Issue
Block a user