search for: bits_read

Displaying 1 result from an estimated 1 matches for "bits_read".

Did you mean: bit_read
2008 Apr 29
2
More trival questions
...<stdio.h> #include "ogg/ogg.h" #define BUF_SIZE 4096 int magic_check( unsigned char test, oggpack_buffer* buffer) { return (long) test == oggpack_read(buffer, 8); } void send_to_my_decoder(unsigned char *body, long body_len) { oggpack_buffer buffer; long bits_read; oggpack_readinit(&buffer, body, body_len); bits_read = oggpack_read(&buffer, 8); if ( bits_read == 0x80 || bits_read == 0x81 || bits_read == 0x82 ) { if ( magic_check( 't', &buffer) && magic_check( 'h...