From b03133000a7f7d49aa3ce57bb5fa1975dd41db21 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sat, 2 Apr 2016 04:20:36 -0700 Subject: [PATCH] avoid dropping final frame of audio data due to wrong test --- release_notes.md | 28 ++++++++++++++++++++++++++++ stb_vorbis.c | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 release_notes.md diff --git a/release_notes.md b/release_notes.md new file mode 100644 index 0000000..b6e50f4 --- /dev/null +++ b/release_notes.md @@ -0,0 +1,28 @@ +---- + +2016-04-02: + +- other_libs: cro_mipmap, greatest, munit, parg, dr_flac +- stb_image: support images coded as RGB +- stb_voxel_render: fix type of glModelview matrix (Stephen Olsen) +- stb_textedit: better support for keying while holding mouse drag button (ocornut) +- stb_image: bmp could return wrong channel count (snagar@github) +- stb_image_resize: fix handling of subpixel regions +- stb_image_resize: avoid warnings on asserts (Wu Shuang) +- stb_truetype: allow fabs() to be supplied by user (Simon Glass) +- stb_image: read 16-bit PNGs as 8-bit (socks-the-fox) +- stb_leakcheck: typo in comment (Lukas Meller) +- stb_vorbis: warnings (Thiago Goulart) +- stb_image: allocate large structures on stack for embedded (Thatcher Ulrich) +- stb_image_write: allocate large structures on stack for embedded (Thatcher Ulrich) +- stb_image: fix harmless typo in name (Matthew Gregan) +- stb_vorbis: fix multiple memory leaks of setup-memory (manxorist@github) +- stb_image: remove white matting for transparent PSD (stb, Oriol Ferrer Mesia) +- stb.h: fix _WIN32 when defining STB_THREADS +- stb_image: fix reported channel count in PNG when req_comp is non-zero +- stb_truetype: duplicate typedef +- stb_truetype: don't leak memory if fontsize=0 +- stb_image: re-enable SSE2 in x64 (except in gcc) + + + diff --git a/stb_vorbis.c b/stb_vorbis.c index b173a20..7676c60 100644 --- a/stb_vorbis.c +++ b/stb_vorbis.c @@ -3508,7 +3508,7 @@ static int is_whole_packet_present(stb_vorbis *f, int end_page) } // either this continues, or it ends it... if (end_page) - if (s < f->segment_count-1) return error(f, VORBIS_invalid_stream); + if (s < f->segment_count) return error(f, VORBIS_invalid_stream); if (s == f->segment_count) s = -1; // set 'crosses page' flag if (p > f->stream_end) return error(f, VORBIS_need_more_data);