OggEnc 1.0 crashes on trivial resampling after encoding (and leaves an unfinished ogg file behind)
Example: oggenc --resample 44100 SomeSong.wav
In my tests SomeSong.wav had 44100 Hz, 16 bits per sample, Stereo.
The crash occurs after encoding is finished and file statistics are printed to
console (but before the buffers are flushed and header is updated). I've
compared 2 files (one encoded with --resample 44100 and one without); the last
0xA92 bytes were missing from the first ogg file and some values in the header
were different (but all other bytes were identical).
The bug is independent from the number of channels (i.e. using --resample or
mono input will cause the bug, too); file size doesn't seem to matter either
(tested files with length of 4 seconds as well as ones with length of 4 minutes)
When setting an invalid bit rate (e.g. -b 32 for CD quality input) the crash
occurs too (immediately now as there's nothing to encode).
IMO this bug is not trivial as it can easily occur when doing batch processing.
Version info (as the appropriate field is missing above):
OggEnc v1.0 (libvorbis 1.0)
(c) 2000-2002 Michael Smith <msmith@l (...) >