openbsd-ports/multimedia/x264/patches/patch-common_cpu_c
ajacoutot 803ba42b08 Import x264-20070325
x264 is a free library for encoding H264/AVC video streams.

This program requires a processor with recent instructions (MMX/SSE for
i386, AltiVec for powerpc).

Encoder features:
 * CAVLC/CABAC
 * Multi-references
 * Intra: all macroblock types (16x16, 8x8, and 4x4 with all predictions)
 * Inter P: all partitions (from 16x16 down to 4x4)
 * Inter B: partitions from 16x16 down to 8x8 (including skip/direct)
 * Ratecontrol: constant quantizer, single or multipass ABR, optional VBV
 * Scene cut detection
 * Adaptive B-frame placement
 * B-frames as references / arbitrary frame order
 * 8x8 and 4x4 adaptive spatial transform
 * Lossless mode
 * Custom quantization matrices
 * Parallel encoding of multiple slices
 * Interlacing


based on an original submission by Nikns Siankin <nikns at secure dot lv>
help and ok naddy@ steven@
2007-04-08 17:31:01 +00:00

13 lines
384 B
Plaintext

$OpenBSD: patch-common_cpu_c,v 1.1.1.1 2007/04/08 17:31:01 ajacoutot Exp $
--- common/cpu.c.orig Sun Mar 25 22:45:02 2007
+++ common/cpu.c Mon Mar 26 17:28:58 2007
@@ -144,7 +144,7 @@ uint32_t x264_cpu_detect( void )
return cpu;
}
-#elif defined( SYS_LINUX )
+#elif defined SYS_LINUX || defined SYS_OPENBSD
#include <signal.h>
#include <setjmp.h>
static sigjmp_buf jmpbuf;