[xiph-cvs] cvs commit: vorbis-tools/oggdec oggdec.c
Michael Smith
msmith at xiph.org
Sat Aug 3 02:08:50 PDT 2002
msmith 02/08/03 02:08:50
Modified: oggdec oggdec.c
Log:
Get preliminary header length correct (hopefully) when it's known.
Revision Changes Path
1.14 +1 -1 vorbis-tools/oggdec/oggdec.c
Index: oggdec.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggdec/oggdec.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- oggdec.c 2002/07/29 06:53:15 1.13
+++ oggdec.c 2002/08/03 09:08:50 1.14
@@ -128,7 +128,7 @@
int samplesize = bits;
if(knownlength && knownlength*bits/8*channels < size)
- size = (unsigned int)knownlength*bits/8*channels;
+ size = (unsigned int)(knownlength*bits/8*channels+44) ;
memcpy(headbuf, "RIFF", 4);
WRITE_U32(headbuf+4, size-8);
<p><p><p><p>--- >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 'cvs-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 commits
mailing list