stats.lua: don't print custom pixel format, when hwdec

There is already other place to indicate hw decoding. "cuda" or "d3d11"
is not a pixel format.
This commit is contained in:
Kacper Michajłow 2023-09-01 13:25:46 +02:00 committed by Niklas Haas
parent e5446399e1
commit 52fc378494
1 changed files with 2 additions and 5 deletions

View File

@ -816,11 +816,8 @@ local function append_img_params(s, r, ro)
local indent = o.prefix_sep .. o.prefix_sep
append(s, r["pixelformat"], {prefix="Pixel Format:"})
if r["hw-pixelformat"] ~= nil then
append(s, r["hw-pixelformat"], {prefix_sep="[", nl="", indent=" ",
suffix="]"})
end
local pixel_format = r["hw-pixelformat"] or r["pixelformat"]
append(s, pixel_format, {prefix="Pixel Format:"})
append(s, r["colorlevels"], {prefix="Levels:", nl="", indent=indent})
-- Group these together to save vertical space