[Mplayer-cvslog] CVS: main/libaf af_volume.c,1.10,1.11

Alex Beregszaszi syncmail at mplayerhq.hu
Fri Jun 25 17:27:01 CEST 2004


CVS change done by Alex Beregszaszi

Update of /cvsroot/mplayer/main/libaf
In directory mail:/var2/tmp/cvs-serv2433

Modified Files:
	af_volume.c 
Log Message:
remove the latest use of log10 in favor of the better af_to_dB helper function, patch by Reimar Doffinger

Index: af_volume.c
===================================================================
RCS file: /cvsroot/mplayer/main/libaf/af_volume.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- af_volume.c	20 Jan 2003 10:46:18 -0000	1.10
+++ af_volume.c	25 Jun 2004 15:26:59 -0000	1.11
@@ -112,8 +112,8 @@
     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;
   }




More information about the MPlayer-cvslog mailing list