[vorbis-dev] CVS, etc...

Jeff Smith
2001-03-02T08:40:54Z

I realized the same changes needed to be made to OggDrop's audio.c file.
The reasoning is the same, of course: a slightly different interpretation of
the WAV format specs for vanilla, uncompressed WAVs.
  I still need to know how you want the diffs/patches sent, and if I need to
resend the two diffs in that format.  Here is the straight diff for
OggDrop's audio.c:

24c24
<
(((buf)[3]<<24)|((buf)[2]<<16)|((buf)[1]<<8)|((buf)[0]&0xff));

---
>
(((buf)[3]<<24)|((buf)[2]<<16)|((buf)[1]<<8)|((buf)[0]&0xff))
27c27
<       (((buf)[1]<<8)|((buf)[0]&0xff));
---
>       (((buf)[1]<<8)|((buf)[0]&0xff))
71c71
<       unsigned char buf[16];
---
>       unsigned char buf[18];
94c94
<       if(len!=16)
---
>       if((len!=16)&&(len!=18))
100c100
<       if(fread(buf,1,16,in) < 16)
---
>       if(fread(buf,1,len,in) < len)
111a112,115
>       if((len==18)&&(READ_U16(buf+16)!=0)) {
>               fprintf(stderr, "Warning: Unrecognised format chunk in
WAV
>header\n");
>               return 0; /* Weird format chunk */
>       }