Vorbis encoder segfault
I am getting an access violation from libvorbis while encoding. I'm using libvorbis-1.1.2, but I have tried the latest subversion code (as of 3/5/07) without any improvement. Unfortunately, I can't duplicate the problem with the debug build of the library, so I can't give a full backtrace.
Here are the details that I have: The error is an access violation reading 0x00FCD818
My code is based on the encoder example included with libvorbis, with some light modifications - the largest being that a fixed bitrate is used instead of vbr. With my code built in debug mode, but the libraries built in release mode, I can trace the access violation to the vorbis_analysis function - which I think is kind of a dispatch function, so thats probably not much help.
I'm building on Windows XP Pro SP2 with VC++ express edition 2005 (8.0.507727.42). I'm using the win32/build_vorbis_dynamic.bat and the other included .bat files to build DLLs for vorbis, vorbisenc, vorbisfile, and ogg.
I have built a stand-alone executable that can duplicate the problem with some test audio data. The stand-alone program is also based off of encoder_example.c and simply encodes some test audio data in a similar way to what my application does.
There are two audio streams used in my test program: One is raw 16-bit PCM audio data with a sample rate of 44100. The other is the same audio stream, resampled to 22050 samples per second (still 16-bit PCM).
The bug only seems to occur if the 44100 sample is encoded with a bit rate of 48, and then the 22050 sample is encoded twice with a bit rate of 32.
I don't see a way to attach files to a ticket, so send me an email and I can send you the test app and test data.