Hello, I have found that there are some WAV files which have a "fmt" chunk size greater then 16 bytes (length indicator greater then 16). The patch is attached. What is the normal method for submiting patches? Regards, Chris Wolf <HR NOSHADE> <UL> <LI>application/octet-stream attachment: audio.c.patch </UL> -------------- next part -------------- A non-text attachment was scrubbed... Name: audio.c.patch Type: application/octet-stream Size: 680 bytes Desc: not available Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20010728/7e3f88ad/audio.c-0001.obj
Michael Smith
2001-Jul-28 01:59 UTC
[vorbis-dev] oggenc broken for some types of WAV files
At 01:23 AM 7/28/01 -0700, you wrote:>Hello, > >I have found that there are some WAV files which have a "fmt" chunk size greater >then 16 bytes (length indicator greater then 16). The patch is attached. > >What is the normal method for submiting patches? >The normal method is to send them to the list, as you've done. Your patch is incorrect (will cause crashes if used). There's already a special case for allowing the "fmt " chunk to be of length 18 - this is incorrect according to every wav spec I've been able to find, but is common. However, allowing arbitrarily long fmt chunks is definately not a good idea, so I won't be changing this behaviour unless you can show me an official wav spec that says this is allowed. The application that is creating these files is presumably buggy. Michael --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
David Burnett
2001-Jul-28 08:22 UTC
[vorbis-dev] oggenc broken for some types of WAV files
>At 01:23 AM 7/28/01 -0700, you wrote: > >Your patch is incorrect (will cause crashes if used). There's already a >special case for allowing the "fmt " chunk to be of length 18 - this is >incorrect according to every wav spec I've been able to find, but is >common.To give a longer explaination.... The spec's for WAV's sitting n my hard drive says the 4 bytes at offset 16 of the WAV file the fmt subchunk holds the length of the fmt subchunk. Its supposed to be 16 for files that are pure PCM,but the spec allows for extra bits of data at offset 36 before the data subchunck no matter what the format. The true test for the data being PCM is the two bytes at offset 20 being equal to 1. Dave --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.