search for: oggpack_readinit

Displaying 8 results from an estimated 8 matches for "oggpack_readinit".

2006 Jan 13
2
libogg2 issue in revision 10730
hi all I found that in the revision 10730 of the libogg2 library it is impossible to do bitpacking. this is due to the implementation of the (at least) two functions oggpack_writeinit() and oggpack_readinit(). they both take an (oggpack_buffer *) as an argument and immediately erase all it's contents: void oggpack_readinit(oggpack_buffer *b,ogg_reference *r){ memset(b,0,sizeof(*b)); b->tail=b->head=r; b->count=0; b->headptr=b->head->buffer->data+b->head->begin;...
2001 Jul 13
1
Got a problem (BUG?)
Hi we run a util at work called 'bounds checker' and it came up with this little beauty: 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; } Stack memory overrun: Copying 20 bytes to opb; Starting offset 0, destination size 4 bytes. This is in RC1 code base. Any ideas? fixes? I'll try and...
2008 Aug 13
0
Tremor + upstream libogg
...t decode something properly, I got nothing but noise (being linked with native vorbis lib it decodes perfectly). I started to walk inside Ogg sources as well as its Tremor version, and found that they use quite different version of data structures, oggpack_buffer for instance. For another example, oggpack_readinit uses argument of `struct ogg_reference' type, which lacks in upstream library at all. So I guess that the functions despite from their identical name do not do identical things. So the problem is: I need to use in my application the code from three libraries: Ogg, Theora and Tremor. Theora rel...
2003 Oct 09
0
Vorbis plugin for RealOne Player
..._lookup_state *b=vd->backend_state; vorbis_info *vi=vd->vi; codec_setup_info *ci=vi->codec_setup; oggpack_buffer *opb=&vb->opb; int type,mode,i; /* first things first. Make sure decode is ready */ _vorbis_block_ripcord(vb); oggpack_readinit(opb,op->packet,op->bytes); /* Check the packet type */ if(oggpack_read(opb,1)!=0){ /* Oops. This is not an audio data packet */ return(OV_ENOTAUDIO); } /* read our mode and pre/post windowsize */ mode=oggpack_read(opb,b->modebits); if(mode==-1)return(OV_EBADPAC...
2008 Aug 13
1
Tremor + upstream Ogg library
...t decode something properly, I got nothing but noise (being linked with native vorbis lib it decodes perfectly). I started to walk inside Ogg sources as well as its Tremor version, and found that they use quite different version of data structures, oggpack_buffer for instance. For another example, oggpack_readinit uses argument of `struct ogg_reference' type, which lacks in upstream library at all. So I guess that the functions despite from their identical name do not do identical things. So the problem is: I need to use in my application the code from three libraries: Ogg, Theora and Tremor. Theora rel...
2008 Apr 29
2
More trival questions
...nclude "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', &buffer) &&amp...
2008 Aug 28
0
Error while cross compiling libvorbis 1.2.0
...ference to `oggpack_bytes' ../lib/.libs/libvorbis.so: undefined reference to `oggpack_writeclear' ../lib/.libs/libvorbis.so: undefined reference to `oggpack_adv' ../lib/.libs/libvorbis.so: undefined reference to `oggpack_get_buffer' ../lib/.libs/libvorbis.so: undefined reference to `oggpack_readinit' ../lib/.libs/libvorbis.so: undefined reference to `oggpack_read' ../lib/.libs/libvorbis.so: undefined reference to `oggpack_reset' ../lib/.libs/libvorbis.so: undefined reference to `oggpack_write' collect2: ld returned 1 exit status make[1]: *** [decoder_example] Error 1 make[1]: L...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...on layer) also knows about the gap */ } ogg_packet; typedef struct { ogg_reference *header; int header_len; ogg_reference *body; long body_len; } ogg_page; /* Ogg BITSTREAM PRIMITIVES: bitstream ************************/ extern void oggpack_readinit(oggpack_buffer *b,ogg_reference *r); extern long oggpack_look(oggpack_buffer *b,int bits); extern void oggpack_adv(oggpack_buffer *b,int bits); extern long oggpack_read(oggpack_buffer *b,int bits); extern long oggpack_bytes(oggpack_buffer *b); extern long oggpack_bits(oggpack_buffer *b); exter...