diff options
Diffstat (limited to 'apps/codecs/libspeex/vorbis_psy.h')
-rw-r--r-- | apps/codecs/libspeex/vorbis_psy.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libspeex/vorbis_psy.h b/apps/codecs/libspeex/vorbis_psy.h index fbdb7c5506..6871057753 100644 --- a/apps/codecs/libspeex/vorbis_psy.h +++ b/apps/codecs/libspeex/vorbis_psy.h | |||
@@ -39,7 +39,7 @@ | |||
39 | #define NOISE_COMPAND_LEVELS 40 | 39 | #define NOISE_COMPAND_LEVELS 40 |
40 | 40 | ||
41 | 41 | ||
42 | #define todB(x) ((x)==0?-400.f:log((x)*(x))*4.34294480f) | 42 | #define todB(x) ((x)>1e-13?log((x)*(x))*4.34294480f:-30) |
43 | #define fromdB(x) (exp((x)*.11512925f)) | 43 | #define fromdB(x) (exp((x)*.11512925f)) |
44 | 44 | ||
45 | /* The bark scale equations are approximations, since the original | 45 | /* The bark scale equations are approximations, since the original |