diff options
author | Marcoen Hirschberg <m.hirschberg@activevideo.com> | 2014-05-26 20:16:40 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-28 21:37:44 +0200 |
commit | 6e58b20cced05c303f1b35d5baa5f79b8ad612f5 (patch) | |
tree | 1010851871a329115500d70272cf35d1ebc961e7 /player/command.c | |
parent | b442b522f6d7064caaacc52021f7020b4ad4d261 (diff) | |
download | mpv-6e58b20cced05c303f1b35d5baa5f79b8ad612f5.tar.bz2 mpv-6e58b20cced05c303f1b35d5baa5f79b8ad612f5.tar.xz |
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.
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |