mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
Update dr_libs.
This commit is contained in:
+12
-5
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
FLAC audio decoder. Choice of public domain or MIT-0. See license statements at the end of this file.
|
||||
dr_flac - v0.12.26 - 2021-01-17
|
||||
dr_flac - v0.12.28 - 2021-02-21
|
||||
|
||||
David Reid - mackron@gmail.com
|
||||
|
||||
@@ -232,7 +232,7 @@ extern "C" {
|
||||
|
||||
#define DRFLAC_VERSION_MAJOR 0
|
||||
#define DRFLAC_VERSION_MINOR 12
|
||||
#define DRFLAC_VERSION_REVISION 26
|
||||
#define DRFLAC_VERSION_REVISION 28
|
||||
#define DRFLAC_VERSION_STRING DRFLAC_XSTRINGIFY(DRFLAC_VERSION_MAJOR) "." DRFLAC_XSTRINGIFY(DRFLAC_VERSION_MINOR) "." DRFLAC_XSTRINGIFY(DRFLAC_VERSION_REVISION)
|
||||
|
||||
#include <stddef.h> /* For size_t. */
|
||||
@@ -5170,7 +5170,8 @@ static drflac_bool32 drflac__read_next_flac_frame_header(drflac_bs* bs, drflac_u
|
||||
DRFLAC_ASSERT(blockSize > 0);
|
||||
if (blockSize == 1) {
|
||||
header->blockSizeInPCMFrames = 192;
|
||||
} else if (blockSize >= 2 && blockSize <= 5) {
|
||||
} else if (blockSize <= 5) {
|
||||
DRFLAC_ASSERT(blockSize >= 2);
|
||||
header->blockSizeInPCMFrames = 576 * (1 << (blockSize - 2));
|
||||
} else if (blockSize == 6) {
|
||||
if (!drflac__read_uint16(bs, 8, &header->blockSizeInPCMFrames)) {
|
||||
@@ -8324,7 +8325,7 @@ static drflac_result drflac_result_from_errno(int e)
|
||||
|
||||
static drflac_result drflac_fopen(FILE** ppFile, const char* pFilePath, const char* pOpenMode)
|
||||
{
|
||||
#if _MSC_VER && _MSC_VER >= 1400
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1400
|
||||
errno_t err;
|
||||
#endif
|
||||
|
||||
@@ -8336,7 +8337,7 @@ static drflac_result drflac_fopen(FILE** ppFile, const char* pFilePath, const ch
|
||||
return DRFLAC_INVALID_ARGS;
|
||||
}
|
||||
|
||||
#if _MSC_VER && _MSC_VER >= 1400
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1400
|
||||
err = fopen_s(ppFile, pFilePath, pOpenMode);
|
||||
if (err != 0) {
|
||||
return drflac_result_from_errno(err);
|
||||
@@ -11805,6 +11806,12 @@ DRFLAC_API drflac_bool32 drflac_next_cuesheet_track(drflac_cuesheet_track_iterat
|
||||
/*
|
||||
REVISION HISTORY
|
||||
================
|
||||
v0.12.28 - 2021-02-21
|
||||
- Fix a warning due to referencing _MSC_VER when it is undefined.
|
||||
|
||||
v0.12.27 - 2021-01-31
|
||||
- Fix a static analysis warning.
|
||||
|
||||
v0.12.26 - 2021-01-17
|
||||
- Fix a compilation warning due to _BSD_SOURCE being deprecated.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user