Show e.g. "30 fps" instead of "30.000 fps". Also switch to %.4f for consistency with pretty_print_double().
Showing the changes to player/lua/select.lua (1 of 1 file). Show all
Unified · Split
| @@ -61,7 +61,8 @@ local function format_track(track) · 60 unmodified lines | ||
| 61 | 61 | (track["demux-w"] and track["demux-w"] .. "x" .. track["demux-h"] |
| 62 | 62 | .. " " or "") .. |
| 63 | 63 | (track["demux-fps"] and not track.image |
| 64 | − and string.format("%.3f", track["demux-fps"]) .. " fps " or "") .. | |
| 64 | + and string.format("%.4f", track["demux-fps"]):gsub("%.?0*$", "") .. | |
| 65 | + " fps " or "") .. | |
| 65 | 66 | (track["demux-channel-count"] and track["demux-channel-count"] .. |
| 66 | 67 | " ch " or "") .. |
| 67 | 68 | (track["codec-profile"] and track.type == "audio" |