Update dr_mp3.

This commit is contained in:
David Reid
2020-02-12 18:28:58 +10:00
parent 74a1cf38b9
commit 351226b1b6
+5 -5
View File
@@ -1,6 +1,6 @@
/*
MP3 audio decoder. Choice of public domain or MIT-0. See license statements at the end of this file.
dr_mp3 - v0.5.5 - 2020-01-29
dr_mp3 - v0.5.6 - 2020-02-12
David Reid - mackron@gmail.com
@@ -2137,7 +2137,7 @@ static int drmp3d_find_frame(const drmp3_uint8 *mp3, int mp3_bytes, int *free_fo
}
}
*ptr_frame_bytes = 0;
return i;
return mp3_bytes;
}
void drmp3dec_init(drmp3dec *dec)
@@ -2241,8 +2241,6 @@ int drmp3dec_decode_frame(drmp3dec *dec, const unsigned char *mp3, int mp3_bytes
}
void drmp3dec_f32_to_s16(const float *in, drmp3_int16 *out, int num_samples)
{
if(num_samples > 0)
{
int i = 0;
#if DRMP3_HAVE_SIMD
@@ -2297,7 +2295,6 @@ void drmp3dec_f32_to_s16(const float *in, drmp3_int16 *out, int num_samples)
}
}
}
}
@@ -4010,6 +4007,9 @@ DIFFERENCES BETWEEN minimp3 AND dr_mp3
/*
REVISION HISTORY
================
v0.5.6 - 2020-02-12
- Bring up to date with minimp3.
v0.5.5 - 2020-01-29
- Fix a memory allocation bug in high level s16 decoding APIs.