From 5906691af492f0eedb0cafbfb1dd8070b248ea1d Mon Sep 17 00:00:00 2001 From: Eva Date: Sat, 13 May 2023 19:37:01 +0200 Subject: [PATCH] Skip tone mapping logic when explicitly set and not required --- thumbfast.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/thumbfast.lua b/thumbfast.lua index a7a92f5..cf2a093 100644 --- a/thumbfast.lua +++ b/thumbfast.lua @@ -320,8 +320,7 @@ local function vf_string(filters, full) end end - local tone_mapping_vf = "" - if options.tone_mapping ~= "no" then + if (full and options.tone_mapping ~= "no") or options.tone_mapping == "auto" then if properties["video-params"] and properties["video-params"]["primaries"] == "bt.2020" then local tone_mapping = options.tone_mapping if tone_mapping == "auto" then