From 9f29915f7766656b9aac44267f592d625b758b83 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Wed, 2 Feb 2005 04:25:56 +0000 Subject: fix to code just submitted git-svn-id: https://svn.musicpd.org/mpd/trunk@2928 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputPlugins/flac_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inputPlugins') 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) { -- cgit v1.2.3