vincentjames501/libvorbis-libogg-android — pull request #10 by tertiary (2014-08-16 13:43:08+00:00)
Title: Buffer overflow in org_xiph_vorbis_encoder_VorbisEncoder.c

bytes/(2*channels) is sometimes larger than READ which causes the app to fails randomly. I think buffer overflow takes place there. Here is a change that fixes the issue.