summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-10-29 00:01:43 -0400
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-10-29 19:05:29 -0400
commitb45daad2aa34d17e225e6449fd8cdaeba02ec2be (patch)
tree9540e3bc762dab1601517a33b86f780c9614bd85 /ffmpeg.c
parentb8e19808071c87c271896685d3c5038a6c469f5b (diff)
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 <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
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)