diff options
| author | Michael Smith <msmith@songbirdnest.com> | 2009-02-27 11:17:50 -0800 | 
|---|---|---|
| committer | Michael Smith <msmith@songbirdnest.com> | 2009-02-27 11:18:40 -0800 | 
| commit | b50452fc37a74cab50a44948efa944edd077af92 (patch) | |
| tree | 970a047697dc3b6b5c1c10447e73594c26d07b23 | |
| parent | 3310a540e3ad69d6ed87ddbafd9df22a5a7a7d89 (diff) | |
rgvolume: ignore out-of-range peak values
If the peak value is > 1 (and thus nonsensical) ignore it. Prevents
rgvolume reducing volume to effectively silent on files with bogus peak
values.
| -rw-r--r-- | gst/replaygain/gstrgvolume.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/replaygain/gstrgvolume.c b/gst/replaygain/gstrgvolume.c index 41fe441d..d569b4bb 100644 --- a/gst/replaygain/gstrgvolume.c +++ b/gst/replaygain/gstrgvolume.c @@ -92,7 +92,7 @@ enum  #define PEAK_FORMAT ".06f"  #define VALID_GAIN(x) ((x) > -60.00 && (x) < 60.00) -#define VALID_PEAK(x) ((x) > 0.) +#define VALID_PEAK(x) ((x) > 0. && (x) < 1.)  /* Same template caps as GstVolume, for I don't like having just ANY caps. */  | 
