Skip to content

Commit

Permalink
Skip tone mapping logic when explicitly set and not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
po5 committed May 13, 2023
1 parent 1dde3a9 commit 8aa6faf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions thumbfast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8aa6faf

Please sign in to comment.