search for: crc_lookup

Displaying 4 results from an estimated 4 matches for "crc_lookup".

2002 Jul 12
0
Problem with checksums
...ues and the page body to the CRC procedure. I even use the same look up table in the CRC algo as is used in "framing.c". Still it deos not work. Is there anything else I have to do? Thanks, Erik ============ code ============= CRC routine in C stolen from framing.c: tatic unsigned int crc_lookup[256]={ 0x00000000,0x04c11db7,0x09823b6e,0x0d4326d9, [...] 0xbcb4666d,0xb8757bda,0xb5365d03,0xb1f740b4}; extern void ChecksumCalc(unsigned int *crc_reg, char *buffer, unsigned int size){ unsigned int i; for(i=0;i<size;i++) *crc_reg=(*crc_reg<<8)^crc_lookup[((*crc_reg >>...
2000 Jun 19
2
Compilation error
...CFLAGS="-O20 -ffast-math -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char -I. -I../include " make[2]: Entering directory /var/.scratch/cvs/vorbis/lib' gcc -O20 -ffast-math -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char -I. -I../include -c framing.c framing.c:76: parse error before crc_lookup' framing.c:76: warning: data definition has no type or storage class framing.c:79: parse error before _ogg_crc_entry' framing.c: In function _os_checksum': framing.c:173: syntax error before crc_reg' framing.c:177: crc_reg' undeclared (first use this function) framing.c:177: (Ea...
2003 Sep 09
1
Checksum question
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 :)
2004 Mar 13
1
Ogg / Vorbis Compiling under W32 with MingW ** Problem **
...../include/ogg/ogg.h:189: parse error before '*' token framing.c:45: parse error before "ogg_page_granulepos" framing.c: In function `ogg_page_granulepos': framing.c:47: parse error before "granulepos" framing.c: At top level: framing.c:120: parse error before "crc_lookup" framing.c:184: warning: data definition has no type or storage class framing.c:188: parse error before '*' token framing.c: In function `ogg_stream_init': framing.c:189: `os' undeclared (first use in this function) framing.c:189: (Each undeclared identifier is reported only on...