Fixed bug in flac decoder.
parent
0a6a282f20
commit
a9d103261f
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue