function: code raw [Vorbis] packets into framed OggSquish stream and
decode Ogg streams back into raw packets
- last mod: $Id: framing.c,v 1.17 2000/04/06 15:39:43 xiphmont Exp $
+ last mod: $Id: framing.c,v 1.18 2000/06/19 14:59:06 xiphmont Exp $
note: The CRC code is directly derived from public domain code by
Ross Williams (ross@guest.adelaide.edu.au). See docs/framing.html
/* helper to initialize lookup for direct-table CRC */
-static u_int32_t crc_lookup[256];
+static unsigned vorbis_size32_t crc_lookup[256];
static int crc_ready=0;
-static u_int32_t _ogg_crc_entry(unsigned long index){
+static unsigned vorbis_size32_t _ogg_crc_entry(unsigned long index){
int i;
unsigned long r;
perform the checksum silmultaneously with other copies */
static void _os_checksum(ogg_page *og){
- u_int32_t crc_reg=0;
+ unsigned vorbis_size32_t crc_reg=0;
int i;
for(i=0;i<og->header_len;i++)