Commit b45daad2 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

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: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent b8e19808
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment