diff options
author | drochner <drochner> | 2008-08-26 13:21:59 +0000 |
---|---|---|
committer | drochner <drochner> | 2008-08-26 13:21:59 +0000 |
commit | 021d6177e22a4827c2ce062eb00354a70b196462 (patch) | |
tree | 2bf86e1cbdb14b195e1d32483a824e3b28866242 /multimedia/transcode/patches | |
parent | 9303f438725c461349ee98d0b3c59ee78f7a7d82 (diff) | |
download | pkgsrc-021d6177e22a4827c2ce062eb00354a70b196462.tar.gz |
fix build w/o lzo
Diffstat (limited to 'multimedia/transcode/patches')
-rw-r--r-- | multimedia/transcode/patches/patch-aw | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/multimedia/transcode/patches/patch-aw b/multimedia/transcode/patches/patch-aw new file mode 100644 index 00000000000..982bfed063e --- /dev/null +++ b/multimedia/transcode/patches/patch-aw @@ -0,0 +1,30 @@ +$NetBSD: patch-aw,v 1.4 2008/08/26 13:21:59 drochner Exp $ + +--- ./import/nuv/import_nuv.c.orig 2008-07-12 16:49:58.000000000 +0200 ++++ ./import/nuv/import_nuv.c +@@ -16,7 +16,9 @@ + #include "libtc/libtc.h" + #include "aclib/ac.h" + #include "import/magic.h" ++#ifdef HAVE_LZO + #include "libtc/tc_lzo.h" ++#endif + + + +@@ -474,6 +476,7 @@ static int nuv_decode_video(TCModuleInst + in_framesize = inframe->video_size-5-sizeof(pd->cdata); + out_framesize = pd->width*pd->height + (pd->width/2)*(pd->height/2)*2; + ++#ifdef HAVE_LZO + if (comptype == '2' || comptype == '3') { + /* Undo LZO compression */ + uint8_t *decompressed_frame; +@@ -496,6 +499,7 @@ static int nuv_decode_video(TCModuleInst + /* Convert 2 -> 1, 3 -> 0 */ + comptype ^= 3; + } ++#endif + + switch (comptype) { + |