[arch-commits] Commit in vtk/trunk (PKGBUILD ffmpeg-2.0.diff)
Bartłomiej Piotrowski
bpiotrowski at nymeria.archlinux.org
Mon Jul 22 19:22:39 UTC 2013
Date: Monday, July 22, 2013 @ 21:22:39
Author: bpiotrowski
Revision: 94406
upgpkg: vtk 5.10.1-9
- rebuild against ffmpeg 2.0
Added:
vtk/trunk/ffmpeg-2.0.diff
Modified:
vtk/trunk/PKGBUILD
-----------------+
PKGBUILD | 6 ++++--
ffmpeg-2.0.diff | 21 +++++++++++++++++++++
2 files changed, 25 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-07-22 17:15:01 UTC (rev 94405)
+++ PKGBUILD 2013-07-22 19:22:39 UTC (rev 94406)
@@ -12,7 +12,7 @@
pkgname=vtk
pkgver=5.10.1
-pkgrel=8
+pkgrel=9
pkgdesc='A software system for 3D computer graphics, image processing, and visualization.'
arch=('i686' 'x86_64')
url='http://www.vtk.org/'
@@ -26,11 +26,12 @@
'graphviz: drawing tools')
source=("http://www.vtk.org/files/release/${pkgver:0:4}/vtk-${pkgver}.tar.gz"
"http://www.vtk.org/files/release/${pkgver:0:4}/vtkdata-${pkgver}.tar.gz"
- ffmpeg-0.8.diff ffmpeg-0.11.diff tcl-8.6.diff python-destdir.diff)
+ ffmpeg-0.8.diff ffmpeg-0.11.diff ffmpeg-2.0.diff tcl-8.6.diff python-destdir.diff)
md5sums=('264b0052e65bd6571a84727113508789'
'b6355063264cd56bcd1396c92f6ca59a'
'e992321c9d1def6034d0fa6607b40c5a'
'81922ea61989e5591135f233a0400694'
+ '4ff5668957336709dcd096fbac102558'
'a804a9f034e24ef1a8b28542c15ce1a1'
'f7aba715bcc10de93a6ecf1cd6b0c560')
@@ -40,6 +41,7 @@
# fix compilation errors:
patch -Np1 -i "${srcdir}/ffmpeg-0.8.diff"
patch -Np1 -i "${srcdir}/ffmpeg-0.11.diff"
+ patch -Np1 -i "${srcdir}/ffmpeg-2.0.diff"
patch -Np1 -i "${srcdir}/tcl-8.6.diff"
patch -Np1 -i "${srcdir}/python-destdir.diff"
Added: ffmpeg-2.0.diff
===================================================================
--- ffmpeg-2.0.diff (rev 0)
+++ ffmpeg-2.0.diff 2013-07-22 19:22:39 UTC (rev 94406)
@@ -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;
More information about the arch-commits
mailing list