From 4e11ac82aa9116bbf02dffc0b639d5b5f0f0ef35 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 20 Feb 2020 12:13:32 +0100 Subject: player: change bitrate in track listing back to kilobits Because the --hls-bitrate option takes the same unit. --- player/loadfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/loadfile.c b/player/loadfile.c index b0e3167ae6..4b71d3a999 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -285,7 +285,7 @@ static void print_stream(struct MPContext *mpctx, struct track *t) } APPEND(b, ")"); if (s->hls_bitrate > 0) - APPEND(b, " (%d KB/s)", s->hls_bitrate / 8 / 1024); + APPEND(b, " (%d kbps)", (s->hls_bitrate + 500) / 1000); if (t->is_external) APPEND(b, " (external)"); MP_INFO(mpctx, "%s\n", b); -- cgit v1.2.3