stats: display hw pixel format too

This commit is contained in:
sfan5 2020-10-16 11:09:32 +02:00
parent 3d9d041a11
commit cbbdb3fae4
1 changed files with 4 additions and 0 deletions

View File

@ -549,6 +549,10 @@ local function add_video(s)
append(s, format("%.2f", r["aspect"]), {prefix="Aspect Ratio:"})
end
append(s, r["pixelformat"], {prefix="Pixel Format:"})
if r["hw-pixelformat"] ~= nil then
append(s, r["hw-pixelformat"], {prefix_sep="[", nl="", indent=" ",
suffix="]"})
end
-- Group these together to save vertical space
local prim = append(s, r["primaries"], {prefix="Primaries:"})