summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2004-01-25 11:13:56 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2004-01-25 11:13:56 +0000
commite0c53ac88991e09777e836c218b2ade0ff9a33f8 (patch)
treec2264fae2c293c1d3818a227bebcb1179a31f7d8 /libavcodec
parent65a24d0b393a8c871ba4cab64da65659165e4dcd (diff)
freebsd fix for mpeg12.c (moving INT64_MAX to common.h)
Originally committed as revision 2722 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/common.h12
-rw-r--r--libavcodec/huffyuv.c4
2 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/common.h b/libavcodec/common.h
index 2440e5f095..74802675ec 100644
--- a/libavcodec/common.h
+++ b/libavcodec/common.h
@@ -18,6 +18,14 @@
//#define A32_BITSTREAM_READER
#define LIBMPEG2_BITSTREAM_READER_HACK //add BERO
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
+#ifndef INT64_MAX
+#define INT64_MAX 9223372036854775807LL
+#endif
+
#ifdef HAVE_AV_CONFIG_H
/* only include the following when compiling package */
# include "config.h"
@@ -37,10 +45,6 @@
# define ENODATA 61
# endif
-#ifndef M_PI
-#define M_PI 3.14159265358979323846
-#endif
-
#include <stddef.h>
#ifndef offsetof
# define offsetof(T,F) ((unsigned int)((char *)&((T *)0)->F))
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c
index 41294c85fc..d180d6aeee 100644
--- a/libavcodec/huffyuv.c
+++ b/libavcodec/huffyuv.c
@@ -30,10 +30,6 @@
#include "avcodec.h"
#include "dsputil.h"
-#ifndef INT64_MAX
-#define INT64_MAX 9223372036854775807LL
-#endif
-
#define VLC_BITS 11
typedef enum Predictor{