[FFmpeg-cvslog] avcodec/ratecontrol: use predefined M_E

Ganesh Ajjanagadde git at videolan.org
Sat Nov 14 17:06:48 CET 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Tue Nov 10 22:26:25 2015 -0500| [f1726ad1b0d0345cc9dbae917c3141f703b19050] | committer: Ganesh Ajjanagadde

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 at niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f1726ad1b0d0345cc9dbae917c3141f703b19050
---

 libavcodec/ratecontrol.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c
index 308e34e..e96550c 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);



More information about the ffmpeg-cvslog mailing list