summaryrefslogtreecommitdiff
path: root/libavcodec/ratecontrol.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-08-30 16:16:30 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-08-30 16:16:30 +0000
commit471d7dc3d076bfb47bfb14bb8472abc92103e58b (patch)
tree9fa4e088d0e9de4fe87e59323aee363d1e5d30e1 /libavcodec/ratecontrol.c
parent6c1baeb0aa75f2db95bf419ea83c8314b0376b07 (diff)
undefined M_PI / M_E fix
Originally committed as revision 881 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ratecontrol.c')
-rw-r--r--libavcodec/ratecontrol.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c
index fd55367a50..77af3c93c4 100644
--- a/libavcodec/ratecontrol.c
+++ b/libavcodec/ratecontrol.c
@@ -26,6 +26,14 @@
#undef NDEBUG // allways check asserts, the speed effect is far too small to disable them
#include <assert.h>
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
+#ifndef M_E
+#define M_E 2.718281828
+#endif
+
static int init_pass2(MpegEncContext *s);
static double get_qscale(MpegEncContext *s, RateControlEntry *rce, double rate_factor, int frame_num);