aboutsummaryrefslogtreecommitdiff
path: root/multimedia/x264/files/patch-encoder_ratecontrol.c
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/x264/files/patch-encoder_ratecontrol.c')
-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
+