summaryrefslogtreecommitdiff
path: root/community/vtk/ffmpeg-2.0.diff
diff options
context:
space:
mode:
Diffstat (limited to 'community/vtk/ffmpeg-2.0.diff')
-rw-r--r--community/vtk/ffmpeg-2.0.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/community/vtk/ffmpeg-2.0.diff b/community/vtk/ffmpeg-2.0.diff
new file mode 100644
index 000000000..2488d74a0
--- /dev/null
+++ b/community/vtk/ffmpeg-2.0.diff
@@ -0,0 +1,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;