aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 e65853f6d..57addbd10 100644
--- a/src/inputPlugins/flac_plugin.c
+++ b/src/inputPlugins/flac_plugin.c
@@ -417,7 +417,7 @@ FLAC__StreamDecoderWriteStatus flacWrite(const FLAC__SeekableStreamDecoder *dec,
for(c_chan = 0; c_chan < frame->header.channels; c_chan++) {
memcpy(data->chunk+data->chunk_length,
&buf[c_chan][c_samp], bytesPerSample);
- data->chunk_length++;
+ data->chunk_length+=bytesPerSample;
if(FLAC_CHUNK_SIZE-data->chunk_length < bytesPerSample)
{
if(flacSendChunk(data)<0) {