From 9427f1d5d2cce16580e0f2341974f8eef9d8d64c Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Mon, 6 Jun 2005 09:38:04 +0000 Subject: Remove obsolete doc reference. git-svn-id: http://svn.xiph.org/trunk/ogg@9371 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- src/framing.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/framing.c b/src/framing.c index 8852d0c..8d9db18 100644 --- a/src/framing.c +++ b/src/framing.c @@ -117,7 +117,7 @@ static ogg_uint32_t _ogg_crc_entry(unsigned long index){ } #endif -static const ogg_uint32_t crc_lookup[256]={ +static const ogg_uint32_t crc_lookup[256]={ 0x00000000,0x04c11db7,0x09823b6e,0x0d4326d9, 0x130476dc,0x17c56b6b,0x1a864db2,0x1e475005, 0x2608edb8,0x22c9f00f,0x2f8ad6d6,0x2b4bcb61, @@ -260,10 +260,10 @@ void ogg_page_checksum_set(ogg_page *og){ for(i=0;ibody_len;i++) crc_reg=(crc_reg<<8)^crc_lookup[((crc_reg >> 24)&0xff)^og->body[i]]; - og->header[22]=(unsigned char)(crc_reg&0xff); - og->header[23]=(unsigned char)((crc_reg>>8)&0xff); - og->header[24]=(unsigned char)((crc_reg>>16)&0xff); - og->header[25]=(unsigned char)((crc_reg>>24)&0xff); + og->header[22]=(unsigned char)(crc_reg&0xff); + og->header[23]=(unsigned char)((crc_reg>>8)&0xff); + og->header[24]=(unsigned char)((crc_reg>>16)&0xff); + og->header[25]=(unsigned char)((crc_reg>>24)&0xff); } } @@ -378,7 +378,7 @@ int ogg_stream_flush(ogg_stream_state *os,ogg_page *og){ /* 64 bits of PCM position */ for(i=6;i<14;i++){ - os->header[i]=(unsigned char)(granule_pos&0xff); + os->header[i]=(unsigned char)(granule_pos&0xff); granule_pos>>=8; } @@ -386,7 +386,7 @@ int ogg_stream_flush(ogg_stream_state *os,ogg_page *og){ { long serialno=os->serialno; for(i=14;i<18;i++){ - os->header[i]=(unsigned char)(serialno&0xff); + os->header[i]=(unsigned char)(serialno&0xff); serialno>>=8; } } @@ -401,7 +401,7 @@ int ogg_stream_flush(ogg_stream_state *os,ogg_page *og){ { long pageno=os->pageno++; for(i=18;i<22;i++){ - os->header[i]=(unsigned char)(pageno&0xff); + os->header[i]=(unsigned char)(pageno&0xff); pageno>>=8; } } @@ -413,9 +413,9 @@ int ogg_stream_flush(ogg_stream_state *os,ogg_page *og){ os->header[25]=0; /* segment table */ - os->header[26]=(unsigned char)(vals&0xff); + os->header[26]=(unsigned char)(vals&0xff); for(i=0;iheader[i+27]=(unsigned char)(os->lacing_vals[i]&0xff); + bytes+=os->header[i+27]=(unsigned char)(os->lacing_vals[i]&0xff); /* set pointers in the ogg_page struct */ og->header=os->header; @@ -474,8 +474,7 @@ int ogg_stream_eos(ogg_stream_state *os){ ogg_stream_pagein() along with the appropriate ogg_stream_state* (ie, matching serialno). We then get raw packets out calling ogg_stream_packetout() with a - ogg_stream_state. See the 'frame-prog.txt' docs for details and - example code. */ + ogg_stream_state. */ /* initialize the struct to a known state */ int ogg_sync_init(ogg_sync_state *oy){ @@ -645,7 +644,7 @@ int ogg_sync_pageout(ogg_sync_state *oy, ogg_page *og){ buffer. If it doesn't verify, we look for the next potential frame */ - for(;;){ + for(;;){ long ret=ogg_sync_pageseek(oy,og); if(ret>0){ /* have a page */ -- cgit v1.2.1