decoder/flac: pass number of frames to flac_convert()

This commit is contained in:
Max Kellermann
2016-07-11 23:24:48 +02:00
parent 1c818ef0a0
commit 62e96e9a58
3 changed files with 22 additions and 21 deletions

View File

@@ -179,7 +179,7 @@ FlacDecoder::OnWrite(const FLAC__Frame &frame,
flac_convert(data, frame.header.channels,
audio_format.format, buf,
0, frame.header.blocksize);
frame.header.blocksize);
unsigned bit_rate = nbytes * 8 * frame.header.sample_rate /
(1000 * frame.header.blocksize);