From f7cd2a0a073da2373cd3f3c8e31515dd0b83b645 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 2 Aug 2013 01:31:32 -0700 Subject: Fri Aug 2 01:30:56 PDT 2013 --- community/vtk/ffmpeg-2.0.diff | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 community/vtk/ffmpeg-2.0.diff (limited to 'community/vtk/ffmpeg-2.0.diff') 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; -- cgit v1.2.3-54-g00ecf