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
1 changed files with 3 additions and 1 deletions

View File

@ -720,7 +720,9 @@ local function add_video(s)
end end
append_property(s, "current-window-scale", {prefix="Window Scale:"}) append_property(s, "current-window-scale", {prefix="Window Scale:"})
if r["aspect"] ~= nil then 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 end
append(s, r["pixelformat"], {prefix="Pixel Format:"}) append(s, r["pixelformat"], {prefix="Pixel Format:"})
if r["hw-pixelformat"] ~= nil then if r["hw-pixelformat"] ~= nil then