Commit 2fbdc4fa authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

lavfi/avf_showspectrum: replace pow(x, 0.25) by sqrt(sqrt(x))

This is faster; precision assured as result is a float.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 08339cdb
......@@ -590,7 +590,7 @@ static int plot_spectrum_column(AVFilterLink *inlink, AVFrame *insamples)
a = cbrt(a);
break;
case FOURTHRT:
a = pow(a, 0.25);
a = sqrt(sqrt(a));
break;
case FIFTHRT:
a = pow(a, 0.20);
......
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