1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00

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

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})