diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-04-03 04:01:31 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-04-03 04:01:31 +0000 |
commit | 73bcce335f49df5b919ba326765a94fd821561ea (patch) | |
tree | 695acf526cf42188b7d24eac51b938ff63b5f904 /src/flac_decode.c | |
parent | 785cdb0114f8cf534ef93e413e49fbfb62521a67 (diff) | |
download | mpd-73bcce335f49df5b919ba326765a94fd821561ea.tar.gz mpd-73bcce335f49df5b919ba326765a94fd821561ea.tar.xz mpd-73bcce335f49df5b919ba326765a94fd821561ea.zip |
when converting from bps -> kbps, divide by 1000, not 1024
git-svn-id: https://svn.musicpd.org/mpd/trunk@592 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/flac_decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flac_decode.c b/src/flac_decode.c index afb5bcf74..25857cb6e 100644 --- a/src/flac_decode.c +++ b/src/flac_decode.c @@ -219,7 +219,7 @@ FLAC__StreamDecoderWriteStatus flacWrite(const FLAC__FileDecoder *dec, const FLA FLAC__file_decoder_get_decode_position(dec,&newPosition); if(data->position) { data->bitRate = ((newPosition-data->position)*8.0/timeChange) - /1024+0.5; + /1000+0.5; } data->position = newPosition; |