ref: b2f252b9301b93c6fba095140db6edf26d463f2c
parent: f97138517b95737c66626f47e8528569c546dc88
author: lieff <[email protected]>
date: Mon Feb 24 16:19:01 EST 2020
test: improve coverage
--- a/minimp3_test.c
+++ b/minimp3_test.c
@@ -261,7 +261,7 @@
while (samples)
{
int to_read = MINIMP3_MIN(samples, portion);
- readed = mp3dec_ex_read(&dec, info.buffer + samples_readed, to_read);
+ readed = mp3dec_ex_read(&dec, info.buffer + samples_readed, portion);
samples -= readed;
samples_readed += readed;
if (readed != (size_t)to_read)
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -81,6 +81,7 @@
./minimp3 -m 6 -s 2304 vectors/l3-sin1k0db.bit vectors/l3-sin1k0db.pcm
./minimp3 -m 8 -s 2304 vectors/l3-sin1k0db.bit vectors/l3-sin1k0db.pcm
./minimp3 -m 8 -p 2000 vectors/l3-nonstandard-sin1k0db_lame_vbrtag.bit vectors/l3-nonstandard-sin1k0db_lame_vbrtag.pcm
+./minimp3 -m 8 -p 725759 vectors/l3-nonstandard-sin1k0db_lame_vbrtag.bit vectors/l3-nonstandard-sin1k0db_lame_vbrtag.pcm
./minimp3 -t vectors/l3-sin1k0db.bit