mirror of https://github.com/mpv-player/mpv
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:
parent
e5446399e1
commit
52fc378494
|
@ -816,11 +816,8 @@ local function append_img_params(s, r, ro)
|
||||||
|
|
||||||
local indent = o.prefix_sep .. o.prefix_sep
|
local indent = o.prefix_sep .. o.prefix_sep
|
||||||
|
|
||||||
append(s, r["pixelformat"], {prefix="Pixel Format:"})
|
local pixel_format = r["hw-pixelformat"] or r["pixelformat"]
|
||||||
if r["hw-pixelformat"] ~= nil then
|
append(s, pixel_format, {prefix="Pixel Format:"})
|
||||||
append(s, r["hw-pixelformat"], {prefix_sep="[", nl="", indent=" ",
|
|
||||||
suffix="]"})
|
|
||||||
end
|
|
||||||
append(s, r["colorlevels"], {prefix="Levels:", nl="", indent=indent})
|
append(s, r["colorlevels"], {prefix="Levels:", nl="", indent=indent})
|
||||||
|
|
||||||
-- Group these together to save vertical space
|
-- Group these together to save vertical space
|
||||||
|
|
Loading…
Reference in New Issue