aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/flac_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inputPlugins/flac_plugin.c')
-rw-r--r--src/inputPlugins/flac_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inputPlugins/flac_plugin.c b/src/inputPlugins/flac_plugin.c
index 75dc6aa2d..0faee293c 100644
--- a/src/inputPlugins/flac_plugin.c
+++ b/src/inputPlugins/flac_plugin.c
@@ -286,7 +286,7 @@ static FLAC__StreamDecoderWriteStatus flacWrite(const flac_decoder *dec,
flac_convert(data->chunk + data->chunk_length,
num_channels, bytes_per_sample, buf,
c_samp, c_samp + num_samples);
- data->chunk_length = num_samples;
+ data->chunk_length = num_samples * bytes_per_channel;
if (flacSendChunk(data) < 0) {
return