Mercurial > audlegacy-plugins
changeset 2210:d0ede319f7b9
be aware of incorrect formatting
author | Eugene Zagidullin <e.asphyx@gmail.com> |
---|---|
date | Thu, 06 Dec 2007 03:41:16 +0300 |
parents | 190cc25a8510 |
children | 2a13a038987c |
files | src/vorbis/vorbis.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vorbis/vorbis.c Thu Dec 06 03:23:28 2007 +0300 +++ b/src/vorbis/vorbis.c Thu Dec 06 03:41:16 2007 +0300 @@ -538,8 +538,10 @@ if (!rg_peak_str) rg_peak_str = vorbis_comment_query(comment, "rg_peak", 0); /* Old */ - if (rg_peak_str) + if (rg_peak_str) { rg_peak = atof(rg_peak_str); + rg_peak = rg_peak == 0.0 ? 1.0 : rg_peak; /* be aware of incorrect formatted strings --eugene */ + } else rg_peak = 1;