[vorbis-dev] ov_time_seek

Firelight Multimedia support at fmod.org
Thu Oct 26 15:53:37 PDT 2000



i like a prompt reply :)
im really confused now .. as soon as i call this func it crashes in random
places.. the stack is being corrupted i think...
ie in ov_read 'pcm' was a corrupted address and it crashed in the float->int
buffer convert!
next 'book' was corrupted in the function i mentioned first
(vorbis_book_decode)

ill investigate further .. sorry cant cut and paste callstacks.. (devstudio
limitation)
i guess it works ok for you?  this is win32 environment but that probably
shouldnt matter
cheers
Brett.

> > 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.
>

--- >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