summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-06-18 21:04:20 +0200
committerwm4 <wm4@nowhere>2017-10-09 20:40:32 +0200
commit6d10d5a29f8841d22e2d792c18fb45af1536475e (patch)
tree68da6c2180650b216f2a9f52c78588a0733ce066
parentfa80ac13b60745bc743feaee2bc3e5980151de03 (diff)
downloadmpv-6d10d5a29f8841d22e2d792c18fb45af1536475e.tar.bz2
mpv-6d10d5a29f8841d22e2d792c18fb45af1536475e.tar.xz
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.
-rw-r--r--player/lua/stats.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua
index 814ce36d32..7d039f9845 100644
--- a/player/lua/stats.lua
+++ b/player/lua/stats.lua
@@ -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})