Commit 285ac690 authored by smorlat's avatar smorlat

fix potential fpe.



git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@332 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 838dc68c
......@@ -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;
}
......
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