[vorbis-dev] oggenc broken for some types of WAV files

Anthony Arcieri bascule at holly.ColoState.EDU
Sun Jul 29 20:16:18 PDT 2001



This is the way I did it the last time I wrote a RIFF processor (a generic
one that handles both .avi and .wav)  As long as the format chunk is
relatively valid I think the input code should process it.  Certainly you
can give a warning if the file format is invalid, and terminate under
normal operation even, but provide the user some way to continue to
process the file if he/she wants (a --force command line option perhaps?)

I think if the input code is too stringent in adhering to the "spec"
people will think the code itself isn't robust.  Robust code should be
able to process any RIFF, regardless of whether it conforms to spec
perfectly or is horribly mangled.

Tony Arcieri

> That's correct, any wav loader should use something like below (alloc or
> seek past, whatever) to get the format chunk and not assume it is the
> size of the structure..

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list