aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-10-29 00:16:34 -0400
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-10-29 18:53:11 -0400
commit59d37f5a4e7014ee0e44af051f092fff9917399b (patch)
treee62c9ecdcbba5a9e87986d1c3563efcb2f943d15
parente8c37160640952ab036e643156add9638c062536 (diff)
downloadffmpeg-59d37f5a4e7014ee0e44af051f092fff9917399b.tar.gz
avfilter/vf_psnr: use log10 instead of log()/log(10)
This is likely more precise and conveys the intent better. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
-rw-r--r--libavfilter/vf_psnr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_psnr.c b/libavfilter/vf_psnr.c
index 36bbab259f..bce5c515c8 100644
--- a/libavfilter/vf_psnr.c
+++ b/libavfilter/vf_psnr.c
@@ -72,7 +72,7 @@ static inline unsigned pow2(unsigned base)
static inline double get_psnr(double mse, uint64_t nb_frames, int max)
{
- return 10.0 * log(pow2(max) / (mse / nb_frames)) / log(10.0);
+ return 10.0 * log10(pow2(max) / (mse / nb_frames));
}
static uint64_t sse_line_8bit(const uint8_t *main_line, const uint8_t *ref_line, int outw)