libvorbis-1.0 encoder_example seg faults
This is for libvorbis-1.0
I don't know if this is an endian or alignment issue (which may affect more
platforms than just HP-UX, but running the encode_example causes a seg fault.
Here is a gdb backtrace:
$ ./encoder_example < ~/audio.wav > ~/audio.ogg
Memory fault(coredump)
$ gdb encoder_example core
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "hppa1.1-hp-hpux9.01"...
Core was generated by `encoder_exampl'.
Program terminated with signal 11, Segmentation fault.
#0 mdct_forward (init=0x4016ffa8, in=0x7b033cc0, out=0x7b033968) at mdct.c:298
298 x2[2] = MULT_NORM(r1 * T[1] + r0 * T[0]);
(gdb) bt
#0 mdct_forward (init=0x4016ffa8, in=0x7b033cc0, out=0x7b033968) at mdct.c:298
#1 0x13760 in _ve_amp (ve=0x7fffffed, gi=0x7b033cc0, data=0xd,
bands=0x4016ffc0, filters=0x40170668, pos=0) at envelope.c:121
#2 0x13c64 in _ve_envelope_search (v=0x7b033628) at envelope.c:243
#3 0xa544 in vorbis_analysis_blockout (v=0x7b033628, vb=0x7b033698)
at block.c:504
#4 0x6f14 in main () at encoder_example.c:237
(gdb)