[vorbis-dev] ov_time_seek

Monty xiphmont at xiph.org
Thu Oct 26 15:27:31 PDT 2000



> when i call ov_time_seek or ov_time_seek_page it crashes in
> 
> long vorbis_book_decode(codebook *book, oggpack_buffer *b){
>   long ptr=0;
>   decode_aux *t=book->decode_tree;
>   int lok = oggpack_look(b, t->tabn);
> 
> decode_tree is null, so t->tabn generates an exception.. is there something
> i didnt initialize or maybe a null pointer check is in order?

If the pointer is null, the engine is borked or uninitialized.  Are
you checking all your return codes from vorbis calls?  The example
source plays fast and loose with this so that the larger flow of the
program doesn't drown in details (although it does encourage ignoring
return codes when doing so can be fatal).

Can I see your source and a complete backtrace? 

Monty

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list