mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-12-14 15:08:49 +00:00
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 "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…
Reference in New Issue
Block a user