summaryrefslogtreecommitdiff
path: root/multimedia/dvbcut/files/patch-psfile.cpp
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2007-07-17 06:27:12 +0000
committerStefan Eßer <se@FreeBSD.org>2007-07-17 06:27:12 +0000
commit8b8a92680a41b5e4cebb2df6cae6c9842d9480a9 (patch)
tree3742dae1dc29ee28fe3da82704ab012079b045ac /multimedia/dvbcut/files/patch-psfile.cpp
parent- Remove pkg-message (no longer valid). (diff)
Unbreak compilation caused by removal of C++ compatibility wrappers
from include files that are installed by ffmpeg. The ffmpeg developers wanted to make it clear, that C++ is not officially supported.
Diffstat (limited to 'multimedia/dvbcut/files/patch-psfile.cpp')
-rw-r--r--multimedia/dvbcut/files/patch-psfile.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/multimedia/dvbcut/files/patch-psfile.cpp b/multimedia/dvbcut/files/patch-psfile.cpp
index a4f3628a02ee..d4864d6b90a5 100644
--- a/multimedia/dvbcut/files/patch-psfile.cpp
+++ b/multimedia/dvbcut/files/patch-psfile.cpp
@@ -1,6 +1,16 @@
--- src/psfile.cpp~ Fri Apr 13 19:36:27 2007
-+++ src/psfile.cpp Tue May 1 21:45:19 2007
-@@ -100,7 +100,7 @@
++++ src/psfile.cpp 2007-07-17 01:11:44 +0200
+@@ -19,7 +19,9 @@
+ #include "psfile.h"
+ #include "streamhandle.h"
+ #include "stream.h"
++extern "C" {
+ #include <ffmpeg/avcodec.h>
++}
+
+ psfile::psfile(const std::string &filename, inbuffer &b, int initial_offset)
+ : mpgfile(filename, b, initial_offset)
+@@ -100,7 +102,7 @@
streamnumber[sid]=audiostream(audiostreams);
stream *S=&s[audiostream(audiostreams++)];
S->id=sid;