summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2024-05-12 01:55:43 +0200
committerKacper Michajłow <kasper93@gmail.com>2024-05-12 20:06:39 +0200
commit71d9c3139475fa752685adacb99f33f4ee49c959 (patch)
tree23fd08018ed4e6d4378e1090aa21de6b940ef543 /TOOLS
parent0084fbd458054bc13a5d186599e52e4807b980d4 (diff)
downloadmpv-71d9c3139475fa752685adacb99f33f4ee49c959.tar.bz2
mpv-71d9c3139475fa752685adacb99f33f4ee49c959.tar.xz
acompressor.lua: break long lines
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/lua/acompressor.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/TOOLS/lua/acompressor.lua b/TOOLS/lua/acompressor.lua
index 6a6914076a..e94dc3e0fb 100644
--- a/TOOLS/lua/acompressor.lua
+++ b/TOOLS/lua/acompressor.lua
@@ -53,8 +53,10 @@ local params = {
}
local function parse_value(value)
- -- Using nil here because tonumber differs between lua 5.1 and 5.2 when parsing fractions in combination with explicit base argument set to 10.
- -- And we can't omit it because gsub returns 2 values which would get unpacked and cause more problems. Gotta love scripting languages.
+ -- Using nil here because tonumber differs between lua 5.1 and 5.2 when
+ -- parsing fractions in combination with explicit base argument set to 10.
+ -- And we can't omit it because gsub returns 2 values which would get
+ -- unpacked and cause more problems. Gotta love scripting languages.
return tonumber(value:gsub('dB$', ''), nil)
end
@@ -76,7 +78,8 @@ local function show_osd(filter)
for _,param in ipairs(params) do
local value = parse_value(filter.params[param.name])
if not (param.hide_default and value == o['default_' .. param.name]) then
- pretty[#pretty+1] = string.format('%s: %g%s', param.name:gsub("^%l", string.upper), value, param.dB)
+ pretty[#pretty+1] = string.format('%s: %g%s', param.name:gsub("^%l", string.upper),
+ value, param.dB)
end
end