summaryrefslogtreecommitdiff
path: root/multimedia/tosvcd/files/patch-decode.c
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-10-25 08:12:42 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-10-25 08:12:42 +0000
commit3a0cd27f78beadddff62fd14c4273d202fe932fe (patch)
treecf50a6b82f22b66102c0797cbc13a1eebd844d2f /multimedia/tosvcd/files/patch-decode.c
parentAdded two missing files to pkg-plist (diff)
add tosvcd 0.7
SVCD transcoder
Diffstat (limited to '')
-rw-r--r--multimedia/tosvcd/files/patch-decode.c20
1 files changed, 20 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++) {