From 6e58b20cced05c303f1b35d5baa5f79b8ad612f5 Mon Sep 17 00:00:00 2001 From: Marcoen Hirschberg Date: Mon, 26 May 2014 20:16:40 +0200 Subject: audio: change values from bytes-per-second to bits-per-second The i_bps members of the sh_audio and dev_video structs are mostly used for displaying the average audio and video bitrates. Keeping them in bits-per-second avoids truncating them to bytes-per-second and changing them back lateron. --- player/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index 29137024ee..7e391e673f 100644 --- a/player/command.c +++ b/player/command.c @@ -105,7 +105,7 @@ static void mark_seek(struct MPContext *mpctx) static char *format_bitrate(int rate) { - return talloc_asprintf(NULL, "%d kbps", rate * 8 / 1000); + return talloc_asprintf(NULL, "%d kbps", rate / 1000); } static char *format_file_size(int64_t size) -- cgit v1.2.3