[vorbis] ov_clear(&vorbis) segfaults?
Stan Seibert
volsung at mailsnare.net
Sun Sep 14 16:46:48 PDT 2003
On Sun, 2003-09-14 at 13:26, Alexander Markley wrote:
> //BEGIN PSEUDO CODE
> OggVorbis_File vorbis;
> vorbis_info *info;
>
> if(ov_open(infile, &vorbis, NULL, 0) != 0) error();
> if((info = ov_info(&vorbis, -1)) == NULL) error();
> if((availible_chunks[tint]->len = ov_pcm_total(&vorbis, -1)) ==
> OV_EINVAL) error();
> while((tulong = ov_read(&vorbis, tuint8p, 4096, endian, 2, 1,
> &bitstream)) != 0) dothings_withdata(); //While not end.
> if(ov_clear(&vorbis) != 0) error(); //SEGFAULT!
> //END PSEUDO CODE
>
> Now, I realize that I haven't given much in the line of an example here,
> but I do have a full, compiling, smallest test-case availible to anybody
> who's interested.
Can you supply a backtrace showing where the code segfaulted? That
usually helps to pinpoint errors.
---
Stan Seibert
<p>--- >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-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
mailing list