[vorbis] Songs stopping early on my player

Monty xiphmont at xiph.org
Mon Jul 16 08:54:12 PDT 2001



On Tue, Jul 17, 2001 at 12:18:21AM +1000, Michael Smith wrote:
> At 12:38 AM 7/17/01 +1200, you wrote:
> >
> >I suspect the stopping behaviour is my mishandling of either OV_EBADLINK or
> >OV_HOLE.
> >What should I be doing if either of these values are returned by ov_read?
> 
> OV_HOLE means "It looks like something was missing here". For a file, 
> that's usually an indication it's corrupt. For a stream, it's normal.
> Either way, it's completely non-fatal. You may want to inform the user
> in some way that it occurred, but other than that, just keep decoding.

Yes, this will only happen in a corrupt file.

> OV_EBADLINK is, I think, a serious error which isn't recoverable. You 
> should stop decode (I'm not certain about that, though, without checking
> the code).

It's recoverable and means mostly that the headers for a specific link
in a chained file were corrupt, so the link can't be decoded.  Of
course, this isn't ever going to happen in the middle of playback of a
single-bitstream file.  If you don't have a chained file (if you don't
know, then you don't have one) and you get this error, your C code is
corrupting the heap.

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