fix potential fpe.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@332 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
smorlat 2009-03-11 10:13:15 +00:00
parent 838dc68c6e
commit 285ac6904e

View file

@ -38,7 +38,7 @@ static void volume_uninit(MSFilter *f){
static int volume_get(MSFilter *f, void *arg){
float *farg=(float*)arg;
Volume *v=(Volume*)f->data;
*farg=10*log10f(v->energy/max_e);
*farg=10*log10f((v->energy+1)/max_e);
return 0;
}