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>
This commit is contained in:
Ganesh Ajjanagadde 2015-11-10 22:26:25 -05:00
parent c8aaae8e0f
commit f1726ad1b0
1 changed files with 0 additions and 4 deletions

View File

@ -35,10 +35,6 @@
#include "mpegvideo.h" #include "mpegvideo.h"
#include "libavutil/eval.h" #include "libavutil/eval.h"
#ifndef M_E
#define M_E 2.718281828
#endif
static int init_pass2(MpegEncContext *s); static int init_pass2(MpegEncContext *s);
static double get_qscale(MpegEncContext *s, RateControlEntry *rce, static double get_qscale(MpegEncContext *s, RateControlEntry *rce,
double rate_factor, int frame_num); double rate_factor, int frame_num);