stats: update HDR peak for upstream changes

This no longer reports cd/m² but now reports a relative peak as a
multiple of the SDR reference brightness.
This commit is contained in:
Niklas Haas 2017-06-18 21:04:20 +02:00 committed by wm4
parent fa80ac13b6
commit 6d10d5a29f
1 changed files with 2 additions and 2 deletions

View File

@ -430,8 +430,8 @@ local function add_video(s)
-- Append HDR metadata conditionally (only when present and interesting)
local hdrpeak = mp.get_property_number("video-params/sig-peak", 0)
local hdrinfo = ""
if hdrpeak > 0 then
hdrinfo = " (HDR peak: " .. hdrpeak .. " cd/m²)"
if hdrpeak > 1 then
hdrinfo = " (HDR peak: " .. hdrpeak .. ")"
end
append_property(s, "video-params/gamma", {prefix="Gamma:", suffix=hdrinfo})