svn commit: r331862 - head/multimedia/2mandvd/files
William Grzybowski
wg at FreeBSD.org
Mon Oct 28 14:57:31 UTC 2013
Author: wg
Date: Mon Oct 28 14:57:30 2013
New Revision: 331862
URL: http://svnweb.freebsd.org/changeset/ports/331862
Log:
multimedia/2mandvd: fix build with newer ffmpeg
- Add patch to chase the ffmpeg 2.0 API change
Reported by: marino
Modified:
head/multimedia/2mandvd/files/patch-videowrapper.cpp
Modified: head/multimedia/2mandvd/files/patch-videowrapper.cpp
==============================================================================
--- head/multimedia/2mandvd/files/patch-videowrapper.cpp Mon Oct 28 14:53:49 2013 (r331861)
+++ head/multimedia/2mandvd/files/patch-videowrapper.cpp Mon Oct 28 14:57:30 2013 (r331862)
@@ -1,11 +1,21 @@
---- videowrapper.cpp.orig
-+++ videowrapper.cpp
-@@ -38,7 +38,7 @@ void videowrapper::delete_videowrapper()
+diff -urN videowrapper.cpp videowrapper.cpp
+--- videowrapper.cpp 2012-06-06 20:25:24.000000000 +1100
++++ videowrapper.cpp 2013-08-03 10:54:05.426228163 +1100
+@@ -38,7 +38,7 @@
int videowrapper::load_video(QString filename)
{
// *** OUVERTURE DU FICHIER VIDEO ***
- #ifdef avformat_open_input
-+ #if LIBAVFORMAT_VERSION_INT > AV_VERSION_INT(53,5,0)
++#if LIBAVFORMAT_VERSION_MAJOR >= 53
if (avformat_open_input(&pFormatCtx,filename.toAscii().data(),NULL,NULL)!=0)
{
#else
+@@ -90,7 +90,7 @@
+
+ // *** OUVERTURE DU CODEC ***
+
+- if(avcodec_open(pCodecCtx, pCodec)<0)
++ if(avcodec_open2(pCodecCtx, pCodec, NULL)<0)
+ {
+ qDebug() << "CAN'T FIND VIDEO CODEC";
+ return 1;
More information about the svn-ports-head
mailing list