0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

remove the latest use of log10 in favor of the better af_to_dB helper function, patch by Reimar Doffinger

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12642 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2004-06-25 15:26:59 +00:00
parent 38bc7729f5
commit d04df91cbe

View File

@ -112,8 +112,8 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
if(!s->fast){
for(i=0;i<AF_NCH;i++)
m=max(m,s->max[i]);
af_msg(AF_MSG_INFO,"[volume] The maximum volume was %0.2fdB \n",
10*log10(m));
af_to_dB(1, &m, &m, 10.0);
af_msg(AF_MSG_INFO,"[volume] The maximum volume was %0.2fdB \n", m);
}
return AF_OK;
}