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

@@ -408,7 +408,7 @@ dsdiff_decode_chunk(DecoderClient &client, InputStream &is,
bit_reverse_buffer(buffer, buffer + nbytes);
cmd = client.SubmitData(is, buffer, nbytes,
sample_rate / 1000);
channels * sample_rate / 1000);
}
return true;