Vorbis encoding bug on amd64
I have a very simple floating point WAV file (mono, 2048 samples, 16kHz sample rate) that gets really screwed up when encoded with libvorbis on an amd64 CPU. The problem does not exist on ia32.
The bug does exist both in SVN head and with oggenc v1.0.2 although it isn't an oggenc bug because it manifests itself with using libogg/libvorbis/libvorbisenc directly.
I'll attached the file (vorbis_enc_bug_on_amd64.wav) after submitting the bug.
Reproducing the bug with oggenc can be done as follows:
oggenc vorbis_enc_bug_on_amd64.wav -o a.oga oggdev a.oga a.wav
Now compare the original with WAV file with the output and you will notice that the output has a bunch of grabage (noise) at the start of the file. I'll attach an image of input and output as well.