diff --git a/videoclip.lua b/videoclip.lua index e880845..cc66e27 100644 --- a/videoclip.lua +++ b/videoclip.lua @@ -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