aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-10 22:26:25 -0500
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-14 10:58:39 -0500
commitf1726ad1b0d0345cc9dbae917c3141f703b19050 (patch)
tree8664b1dcfa5ee4f0c9168819f3bef2c8a2724885
parentc8aaae8e0f1519bc99bd717ea3067c9cfdb68def (diff)
downloadffmpeg-f1726ad1b0d0345cc9dbae917c3141f703b19050.tar.gz
avcodec/ratecontrol: use predefined M_E
M_E is defined in math.h, or in avutil/mathematics.h for compatibility hacks. This uses this value instead of an ad-hoc define. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
-rw-r--r--libavcodec/ratecontrol.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c
index 308e34ee18..e96550cc69 100644
--- a/libavcodec/ratecontrol.c
+++ b/libavcodec/ratecontrol.c
@@ -35,10 +35,6 @@
#include "mpegvideo.h"
#include "libavutil/eval.h"
-#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);