Fixed the flush_encoders method to support older versions of FFmpeg

This commit is contained in:
Jonathan Thomas
2012-11-17 03:13:00 -06:00
parent dbeb8d1c14
commit bf05afbfa7
3 changed files with 38 additions and 5 deletions

View File

@@ -159,9 +159,9 @@ int main()
// c1.time.PrintValues();
// Add clips
//t.AddClip(&c1);
t.AddClip(&c1);
//t.AddClip(&c2);
t.AddClip(&c3);
//t.AddClip(&c3);
// Create a writer
@@ -182,7 +182,7 @@ int main()
// Output stream info
w.OutputStreamInfo();
for (int frame = 1; frame <= 300; frame++)
for (int frame = 1; frame <= 180; frame++)
{
tr1::shared_ptr<Frame> f = t.GetFrame(frame);
if (f)