1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-31 07:51:55 +00:00

stats.lua: display --video-crop values when used

This commit is contained in:
Kacper Michajłow 2023-08-25 19:34:11 +02:00 committed by Dudemanguy
parent 3726834aaf
commit c865ce9455

View File

@ -693,6 +693,10 @@ local function append_resolution(s, r, prefix, w_prop, h_prop)
indent=" ", prefix_sep="",
no_prefix_markup=true})
end
if r["crop-w"] and r["crop-w"] > 0 then
append(s, format("[x: %d, y: %d, w: %d, h: %d]", r["crop-x"], r["crop-y"], r["crop-w"],
r["crop-h"]), {prefix=", ", nl="", indent="", no_prefix_markup=true})
end
end
end