mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
c8aaae8e0f
commit
f1726ad1b0
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue