summaryrefslogtreecommitdiff
path: root/community/vtk/ffmpeg-2.0.diff
blob: 2488d74a0749f256bc512fac4f19110cbd1ecc6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -rupN a/IO/vtkFFMPEGWriter.cxx b/IO/vtkFFMPEGWriter.cxx
--- a/IO/vtkFFMPEGWriter.cxx	2013-07-22 18:29:24.625362910 +0000
+++ b/IO/vtkFFMPEGWriter.cxx	2013-07-22 18:39:16.184515101 +0000
@@ -149,7 +149,7 @@ int vtkFFMPEGWriterInternal::Start()
   
   //Set up the codec.
   AVCodecContext *c = this->avStream->codec;
-  c->codec_id = (CodecID)this->avOutputFormat->video_codec;
+  c->codec_id = (AVCodecID)this->avOutputFormat->video_codec;
   c->codec_type = AVMEDIA_TYPE_VIDEO;
   c->width = this->Dim[0];
   c->height = this->Dim[1];
@@ -199,7 +199,7 @@ int vtkFFMPEGWriterInternal::Start()
     vtkGenericWarningMacro (<< "Codec not found." );
     return 0;
     }
-  if (avcodec_open(c, codec) < 0) 
+  if (avcodec_open2(c, codec, NULL) < 0) 
     {
     vtkGenericWarningMacro (<< "Could not open codec.");
     return 0;