[ogg-dev] Decoding setup header

Adam Rosi-Kessel adam at rosi-kessel.org
Fri Jul 17 13:11:52 PDT 2009


On Fri, Jul 17, 2009 at 12:48:27PM -0700, Ralph Giles wrote:
> > In my ongoing quest to restore corrupted ogg files, I'm trying to find
> > an easy way to identify the setup header without having to actually
> > decode it. I understand that it starts with [packet_type] = 5 and then
> > the string 'vorbis', but is there some way to figure out where it
> > terminates without actually decoding the bits?
> No. The first header is fixed length the second two are variable. It
> should be immediately followed by a new page header though; if there's
> no corruption you could try that.

In other words, everything in between ^Evorbis and OggS is the setup
header?

Adam


More information about the ogg-dev mailing list