From b45daad2aa34d17e225e6449fd8cdaeba02ec2be Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Thu, 29 Oct 2015 00:01:43 -0400 Subject: [PATCH] ffmpeg: use log10 instead of log()/log(10) This is more concise and conveys the intent better. Furthermore, it is likely more precise as well due to lack of floating point division. Reviewed-by: Michael Niedermayer Signed-off-by: Ganesh Ajjanagadde --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index afe1cb71fe..f8b071a9cb 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1244,7 +1244,7 @@ static void do_video_out(AVFormatContext *s, static double psnr(double d) { - return -10.0 * log(d) / log(10.0); + return -10.0 * log10(d); } static void do_video_stats(OutputStream *ost, int frame_size)