decoder/{dsf,dsdiff}: fix displayed bit rate

The formula did not consider the channel count.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/639
This commit is contained in:
Max Kellermann
2019-09-08 12:45:05 +02:00
parent 193e637dd9
commit 0da9c91af2
3 changed files with 4 additions and 2 deletions

View File

@@ -291,7 +291,7 @@ dsf_decode_chunk(DecoderClient &client, InputStream &is,
cmd = client.SubmitData(is,
interleaved_buffer, block_size,
sample_rate / 1000);
channels * sample_rate / 1000);
++i;
}