fix to code just submitted
git-svn-id: https://svn.musicpd.org/mpd/trunk@2928 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
1e123ad4b7
commit
9f29915f77
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user