diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-29 00:01:43 -0400 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-29 19:05:29 -0400 |
commit | b45daad2aa34d17e225e6449fd8cdaeba02ec2be (patch) | |
tree | 9540e3bc762dab1601517a33b86f780c9614bd85 /ffmpeg.c | |
parent | b8e19808071c87c271896685d3c5038a6c469f5b (diff) | |
download | android_external_ffmpeg-b45daad2aa34d17e225e6449fd8cdaeba02ec2be.tar.gz android_external_ffmpeg-b45daad2aa34d17e225e6449fd8cdaeba02ec2be.tar.bz2 android_external_ffmpeg-b45daad2aa34d17e225e6449fd8cdaeba02ec2be.zip |
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) |