mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
fix(player): clamp loudnorm measured_thresh parameters to valid range (#1871)
Co-authored-by: ci <example@example.com>
This commit is contained in:
@@ -377,6 +377,11 @@ class Volume {
|
||||
i -= measuredI;
|
||||
measuredI = 0;
|
||||
}
|
||||
num measuredThreshold = this.measuredThreshold;
|
||||
if (measuredThreshold > 0) {
|
||||
measuredThreshold = 0;
|
||||
}
|
||||
|
||||
return 'LRA=$lra:I=$i:TP=$tp:offset=$offset:linear=true:measured_I=$measuredI:measured_LRA=$measuredLra:measured_TP=$measuredTp:measured_thresh=$measuredThreshold';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user