diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-29 07:01:43 +0300 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-30 02:05:29 +0300 |
commit | b45daad2aa34d17e225e6449fd8cdaeba02ec2be (patch) | |
tree | 9540e3bc762dab1601517a33b86f780c9614bd85 /ffmpeg.c | |
parent | b8e19808071c87c271896685d3c5038a6c469f5b (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |