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>
pull/160/head
Ganesh Ajjanagadde 9 years ago
parent c8aaae8e0f
commit f1726ad1b0
  1. 4
      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);

Loading…
Cancel
Save