********************************************************************
function: packing variable sized words into an octet stream
- last mod: $Id: bitwise.c,v 1.11 2000/07/07 00:53:10 xiphmont Exp $
+ last mod: $Id: bitwise.c,v 1.12 2000/07/07 01:41:43 xiphmont Exp $
********************************************************************/
memset(b,0,sizeof(oggpack_buffer));
}
-void _oggpack_readinit(oggpack_buffer *b,char *buf,int bytes){
+void _oggpack_readinit(oggpack_buffer *b,unsigned char *buf,int bytes){
memset(b,0,sizeof(oggpack_buffer));
b->buffer=b->ptr=buf;
b->storage=bytes;
return(b->endbyte*8+b->endbit);
}
-char *_oggpack_buffer(oggpack_buffer *b){
+unsigned char *_oggpack_buffer(oggpack_buffer *b){
return(b->buffer);
}
********************************************************************
function: packing variable sized words into an octet stream
- last mod: $Id: bitwise.h,v 1.5 2000/01/12 11:16:37 xiphmont Exp $
+ last mod: $Id: bitwise.h,v 1.6 2000/07/07 01:41:43 xiphmont Exp $
********************************************************************/
extern void _oggpack_writeinit(oggpack_buffer *b);
extern void _oggpack_reset(oggpack_buffer *b);
extern void _oggpack_writeclear(oggpack_buffer *b);
-extern void _oggpack_readinit(oggpack_buffer *b,char *buf,int bytes);
+extern void _oggpack_readinit(oggpack_buffer *b,unsigned char *buf,int bytes);
extern void _oggpack_write(oggpack_buffer *b,unsigned long value,int bits);
extern long _oggpack_look(oggpack_buffer *b,int bits);
extern long _oggpack_look1(oggpack_buffer *b);
extern long _oggpack_read1(oggpack_buffer *b);
extern long _oggpack_bytes(oggpack_buffer *b);
extern long _oggpack_bits(oggpack_buffer *b);
-extern char *_oggpack_buffer(oggpack_buffer *b);
+extern unsigned char *_oggpack_buffer(oggpack_buffer *b);
#endif
function: code raw [Vorbis] packets into framed OggSquish stream and
decode Ogg streams back into raw packets
- last mod: $Id: framing.c,v 1.20 2000/07/07 01:35:31 xiphmont Exp $
+ last mod: $Id: framing.c,v 1.21 2000/07/07 01:41:43 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
}
void copy_page(ogg_page *og){
- char *temp=malloc(og->header_len);
+ unsigned char *temp=malloc(og->header_len);
memcpy(temp,og->header,og->header_len);
og->header=temp;