0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

stats.lua: use video-params/aspect-name

This commit is contained in:
Kacper Michajłow 2023-08-11 17:16:05 +02:00 committed by Dudemanguy
parent 2a7639f452
commit e85d70f84f

View File

@ -720,7 +720,9 @@ local function add_video(s)
end
append_property(s, "current-window-scale", {prefix="Window Scale:"})
if r["aspect"] ~= nil then
append(s, format("%.2f", r["aspect"]), {prefix="Aspect Ratio:"})
append(s, format("%.2f:1", r["aspect"]), {prefix="Aspect Ratio:"})
append(s, r["aspect-name"], {prefix="(", suffix=")", nl="", indent=" ",
prefix_sep="", no_prefix_markup=true})
end
append(s, r["pixelformat"], {prefix="Pixel Format:"})
if r["hw-pixelformat"] ~= nil then