mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
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.
This commit is contained in:
parent
3310a540e3
commit
b50452fc37
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Reference in a new issue