1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-15 00:09:15 -04:00
ports/multimedia/gavl/files/patch-gavl-mix.c
Edwin Groothuis d2e2005631 [NEW PORT] multimedia/gavl: A library for handling uncompressed video and audio data
Gavl (Gmerlin Audio Video Library) is a library for handling
	uncompressed video and audio data.

PR:		ports/71133
Submitted by:	Michael Johnson <ahze@ahze.net>
2004-10-13 23:24:34 +00:00

20 lines
435 B
C

--- gavl/mix.c.orig Sun Aug 29 21:27:05 2004
+++ gavl/mix.c Sun Aug 29 21:29:27 2004
@@ -31,6 +31,17 @@
*/
/* If we have more output- than input channels */
+#include <machine/limits.h>
+
+#ifndef INT8_MAX
+#define INT8_MAX INT_MAX
+#endif
+#ifndef INT16_MAX
+#define INT16_MAX SHRT_MAX
+#endif
+#ifndef INT32_MAX
+#define INT32_MAX LONG_MAX
+#endif
#define FRONT_TO_REAR 1.0
#define FRONT_TO_CENTER 1.0