more self-documenting name

This commit is contained in:
Ren Tatsumoto 2020-09-24 21:16:14 +03:00
parent 5256d28122
commit 8f8edb25f6

View file

@ -31,7 +31,7 @@ local encoder
local OSD
local Timings
local presets = {
local allowed_presets = {
ultrafast = true,
superfast = true,
veryfast = true,
@ -346,7 +346,7 @@ if not config.audio_bitrate:endswith('k') then
config.audio_bitrate = config.audio_bitrate .. 'k'
end
if not presets[config.preset] then
if not allowed_presets[config.preset] then
config.preset = 'faster'
end