Commit 7649f620 authored by David Reid's avatar David Reid

Update dr_mp3.

parent f53291c8
// MP3 audio decoder. Public domain. See "unlicense" statement at the end of this file.
// dr_mp3 - v0.2.10 - 2018-08-07
// dr_mp3 - v0.2.11 - 2018-08-08
//
// David Reid - mackron@gmail.com
//
......@@ -2301,9 +2301,11 @@ static drmp3_bool32 drmp3_decode_next_frame(drmp3* pMP3)
size_t bytesRead = pMP3->onRead(pMP3->pUserData, pMP3->pData + pMP3->dataSize, (pMP3->dataCapacity - pMP3->dataSize));
if (bytesRead == 0) {
if (pMP3->dataSize == 0) {
pMP3->atEnd = DRMP3_TRUE;
return DRMP3_FALSE; // No data.
}
}
pMP3->dataSize += bytesRead;
}
......@@ -2761,6 +2763,9 @@ void drmp3_free(void* p)
// REVISION HISTORY
// ===============
//
// v0.2.11 - 2018-08-08
// - Fix a bug where the last part of a file is not read.
//
// v0.2.10 - 2018-08-07
// - Improve 64-bit detection.
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment