aboutsummaryrefslogtreecommitdiff
path: root/multimedia/x264/files
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2006-05-11 12:12:23 +0000
committerMichael Johnson <ahze@FreeBSD.org>2006-05-11 12:12:23 +0000
commitb05523340ef4fdaa677f77e5ff6a0ce1f96ecea4 (patch)
tree98339226ddf66f545417f48be059edda8f3814c8 /multimedia/x264/files
parent369d8ef21e69454ceaf670d73d029293266d6346 (diff)
downloadports-b05523340ef4fdaa677f77e5ff6a0ce1f96ecea4.tar.gz
ports-b05523340ef4fdaa677f77e5ff6a0ce1f96ecea4.zip
Notes
Diffstat (limited to 'multimedia/x264/files')
-rw-r--r--multimedia/x264/files/patch-encoder_ratecontrol.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/multimedia/x264/files/patch-encoder_ratecontrol.c b/multimedia/x264/files/patch-encoder_ratecontrol.c
new file mode 100644
index 000000000000..7e10b7b28297
--- /dev/null
+++ b/multimedia/x264/files/patch-encoder_ratecontrol.c
@@ -0,0 +1,13 @@
+--- encoder/ratecontrol.c.orig Thu May 11 13:35:36 2006
++++ encoder/ratecontrol.c Thu May 11 13:36:57 2006
+@@ -38,6 +38,9 @@
+ #if defined(SYS_FREEBSD) || defined(SYS_BEOS) || defined(SYS_NETBSD)
+ #define exp2f(x) powf( 2, (x) )
+ #endif
++#if defined(__FreeBSD__) && (__FreeBSD__ < 5)
++#define isfinite(val) (!isnan((val)) && !isinf((val)))
++#endif
+ #if defined(SYS_MACOSX)
+ #define exp2f(x) (float)pow( 2, (x) )
+ #define sqrtf sqrt
+