summaryrefslogtreecommitdiff
path: root/multimedia/tosvcd/files
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/tosvcd/files')
-rw-r--r--multimedia/tosvcd/files/patch-decode.c20
-rw-r--r--multimedia/tosvcd/files/patch-makefile11
-rw-r--r--multimedia/tosvcd/files/patch-tosvcd.c22
3 files changed, 53 insertions, 0 deletions
diff --git a/multimedia/tosvcd/files/patch-decode.c b/multimedia/tosvcd/files/patch-decode.c
new file mode 100644
index 000000000000..9c13da9dfde4
--- /dev/null
+++ b/multimedia/tosvcd/files/patch-decode.c
@@ -0,0 +1,20 @@
+--- decode.c.orig Fri Oct 25 16:01:13 2002
++++ decode.c Fri Oct 25 16:01:31 2002
+@@ -21,7 +21,7 @@
+ Mpeg2dec::Mpeg2dec(uint32_t mm_accel)
+ {
+ config.flags = mm_accel;
+- picture = (picture_t*)memalign (16, sizeof (picture_t));
++ picture = (picture_t*)malloc(sizeof (picture_t));
+ memset(picture, 0, sizeof (picture_t));
+ frames = 0;
+ frame_ptr[0] = 0;
+@@ -66,7 +66,7 @@
+ int size = width() * height() / 4;
+ if (frames)
+ free(frames);
+- frames = (unsigned char*)memalign(64, size*18);
++ frames = (unsigned char*)malloc(size*18);
+ unsigned char* alloc = frames;
+
+ for (int i = 0; i < 3; i++) {
diff --git a/multimedia/tosvcd/files/patch-makefile b/multimedia/tosvcd/files/patch-makefile
new file mode 100644
index 000000000000..6c4b3a971be8
--- /dev/null
+++ b/multimedia/tosvcd/files/patch-makefile
@@ -0,0 +1,11 @@
+--- makefile.orig Fri Oct 25 16:04:05 2002
++++ makefile Fri Oct 25 16:04:25 2002
+@@ -21,7 +21,7 @@
+
+ tosvcd: $(OBJ)
+ $(CC) -o tosvcd $(OBJ) -lpthread
+- su -c "cp tosvcd /usr/bin"
++# su -c "cp tosvcd /usr/bin"
+
+ t:
+ ./tosvcd -o reeperbahn /video0/Auf_der_Reeperbahn_nachts_um_halb_eins/2002-03-09.15:21.50.50.rec
diff --git a/multimedia/tosvcd/files/patch-tosvcd.c b/multimedia/tosvcd/files/patch-tosvcd.c
new file mode 100644
index 000000000000..0400030a1fc7
--- /dev/null
+++ b/multimedia/tosvcd/files/patch-tosvcd.c
@@ -0,0 +1,22 @@
+--- tosvcd.c.orig Fri Oct 25 12:15:12 2002
++++ tosvcd.c Fri Oct 25 12:16:27 2002
+@@ -29,9 +29,8 @@
+ #include <time.h>
+ #include <pthread.h>
+ #include <list>
+-#include <values.h>
+ #include <signal.h>
+-#include <wait.h>
++#include <sys/wait.h>
+ #include <glob.h>
+
+
+@@ -1322,7 +1321,7 @@
+ // catch all signals
+ //---------------------------------------------------
+ #if 1
+- for (int i = 0; i < _NSIG; ++i) {
++ for (int i = 0; i < NSIG; ++i) {
+ if (i != SIGABRT)
+ signal(i, catchSignal);
+ }