Correct samples counting

This commit is contained in:
Silent 2017-03-03 19:02:04 +01:00
parent 7925d3853c
commit dda51ec845

View file

@ -221,6 +221,7 @@ uint32_t CAEFLACDecoder::FillBuffer(void* pBuf, uint32_t nLen)
}
}
m_currentSample += samplesThisIteration;
m_bufferCursor += samplesThisIteration;
samplesToDecode -= samplesThisIteration;
bytesDecoded += samplesThisIteration * 2 * sizeof(int16_t);