avoid dropping final frame of audio data due to wrong test

This commit is contained in:
Sean Barrett 2016-04-02 04:20:36 -07:00
parent 7a694bdcca
commit b03133000a
2 changed files with 29 additions and 1 deletions

28
release_notes.md Normal file
View File

@ -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)

View File

@ -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);