Commit 59d37f5a authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

avfilter/vf_psnr: use log10 instead of log()/log(10)

This is likely more precise and conveys the intent better.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent e8c37160
......@@ -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)
......
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