From 6d10d5a29f8841d22e2d792c18fb45af1536475e Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sun, 18 Jun 2017 21:04:20 +0200 Subject: stats: update HDR peak for upstream changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This no longer reports cd/m² but now reports a relative peak as a multiple of the SDR reference brightness. --- player/lua/stats.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player') 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}) -- cgit v1.2.3