Skip to content

Commit 2bcd961

Browse files
committed
updated dr_mp3.h and dr_flac.h from mainstream.
(cherry picked from commit 19a1a38)
1 parent 739b684 commit 2bcd961

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/codecs/dr_libs/dr_flac.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
FLAC audio decoder. Choice of public domain or MIT-0. See license statements at the end of this file.
3-
dr_flac - v0.13.2 - TBD
3+
dr_flac - v0.13.2 - 2025-12-02
44

55
David Reid - mackron@gmail.com
66

@@ -12158,7 +12158,7 @@ DRFLAC_API drflac_bool32 drflac_next_cuesheet_track(drflac_cuesheet_track_iterat
1215812158
/*
1215912159
REVISION HISTORY
1216012160
================
12161-
v0.13.2 - TBD
12161+
v0.13.2 - 2025-12-02
1216212162
- Improve robustness of the parsing of picture metadata to improve support for memory constrained embedded devices.
1216312163
- Fix a warning about an assigned by unused variable.
1216412164
- Improvements to drflac_open_and_read_pcm_frames_*() and family to avoid excessively large memory allocations from malformed files.

src/codecs/dr_libs/dr_mp3.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
MP3 audio decoder. Choice of public domain or MIT-0. See license statements at the end of this file.
3-
dr_mp3 - v0.7.2 - TBD
3+
dr_mp3 - v0.7.3 - TBD
44
55
David Reid - mackron@gmail.com
66
@@ -72,7 +72,7 @@ extern "C" {
7272

7373
#define DRMP3_VERSION_MAJOR 0
7474
#define DRMP3_VERSION_MINOR 7
75-
#define DRMP3_VERSION_REVISION 2
75+
#define DRMP3_VERSION_REVISION 3
7676
#define DRMP3_VERSION_STRING DRMP3_XSTRINGIFY(DRMP3_VERSION_MAJOR) "." DRMP3_XSTRINGIFY(DRMP3_VERSION_MINOR) "." DRMP3_XSTRINGIFY(DRMP3_VERSION_REVISION)
7777

7878
#include <stddef.h> /* For size_t. */
@@ -4804,6 +4804,8 @@ static float* drmp3__full_read_and_close_f32(drmp3* pMP3, drmp3_config* pConfig,
48044804
pNewFrames = (float*)drmp3__realloc_from_callbacks(pFrames, (size_t)newFramesBufferSize, (size_t)oldFramesBufferSize, &pMP3->allocationCallbacks);
48054805
if (pNewFrames == NULL) {
48064806
drmp3__free_from_callbacks(pFrames, &pMP3->allocationCallbacks);
4807+
pFrames = NULL;
4808+
totalFramesRead = 0;
48074809
break;
48084810
}
48094811

@@ -4871,6 +4873,8 @@ static drmp3_int16* drmp3__full_read_and_close_s16(drmp3* pMP3, drmp3_config* pC
48714873
pNewFrames = (drmp3_int16*)drmp3__realloc_from_callbacks(pFrames, (size_t)newFramesBufferSize, (size_t)oldFramesBufferSize, &pMP3->allocationCallbacks);
48724874
if (pNewFrames == NULL) {
48734875
drmp3__free_from_callbacks(pFrames, &pMP3->allocationCallbacks);
4876+
pFrames = NULL;
4877+
totalFramesRead = 0;
48744878
break;
48754879
}
48764880

@@ -5005,7 +5009,10 @@ DIFFERENCES BETWEEN minimp3 AND dr_mp3
50055009
/*
50065010
REVISION HISTORY
50075011
================
5008-
v0.7.2 - TBD
5012+
v0.7.3 - TBD
5013+
- Fix an error in drmp3_open_and_read_pcm_frames_s16() and family when memory allocation fails.
5014+
5015+
v0.7.2 - 2025-12-02
50095016
- Reduce stack space to improve robustness on embedded systems.
50105017
- Fix a compilation error with MSVC Clang toolset relating to cpuid.
50115018
- Fix an error with APE tag parsing.

0 commit comments

Comments
 (0)