[vorbis-dev] Checksum question

Dominik Kuhlen wsti9sw at mch.siemens.de
Wed Sep 10 00:28:14 PDT 2003



Hi :
Try this diff :

--- orig.crc.c  Wed Sep 10 09:25:53 2003
+++ crc.c       Wed Sep 10 09:25:31 2003
@@ -85,7 +85,7 @@
   page[82]=0;
   page[83]=0;

-  for(i=58;i<(190-58);i++)
+  for(i=58;i<(3087-58);i++)
     {
       crc_reg=(crc_reg<<8)^crc_lookup[((crc_reg >> 24)&0xff)^page[i]];
     }

<p><p>the whole Ogg page has to be included in your crc check

Greg Hazel wrote:

>I'm trying to simply regenerate the comment header checksum on the ogg
>file "test.ogg"
>I ripped the checksum function from libvorbis, and only modified it in
>that I hard-coded what I think is the comment header (as far as I can
>tell from the docs). However it seems to generate an invalid checksum
>(according to ogginfo)
>Here is a url to the two files, please help :)
>
>http://alus.mine.nu/ogg
>
>  
>

Dominik

<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 '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