diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-06-25 15:26:59 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-06-25 15:26:59 +0000 |
commit | d04df91cbe7263836173cb63dfbe630eb62cc24d (patch) | |
tree | dda0a40660795fee8d27d3fcfa57bf5c6ad0fb1d /libaf | |
parent | 38bc7729f570d90ba2d518a68278670a4c48d6ed (diff) | |
download | mpv-d04df91cbe7263836173cb63dfbe630eb62cc24d.tar.bz2 mpv-d04df91cbe7263836173cb63dfbe630eb62cc24d.tar.xz |
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
Diffstat (limited to 'libaf')
-rw-r--r-- | libaf/af_volume.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libaf/af_volume.c b/libaf/af_volume.c index 9468ade76a..f879b3de2c 100644 --- a/libaf/af_volume.c +++ b/libaf/af_volume.c @@ -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; } |