Fixed bug in flac decoder.

CQTexperiment
vspader 2008-01-23 02:45:57 +00:00
parent 0a6a282f20
commit a9d103261f
1 changed files with 1 additions and 0 deletions

View File

@ -219,6 +219,7 @@ void ErrorCallback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorS
memcpy(((uint8_t *)buffer) + (framesRead * bytesPerFrame), (uint8_t *)blockBuffer, framesToRead * bytesPerFrame); memcpy(((uint8_t *)buffer) + (framesRead * bytesPerFrame), (uint8_t *)blockBuffer, framesToRead * bytesPerFrame);
frames -= framesToRead;
framesRead += framesToRead; framesRead += framesToRead;
blockBufferFrames -= framesToRead; blockBufferFrames -= framesToRead;