[Vorbis-dev] libvorbis 1.2.2 RC1

ogg.k.ogg.k at googlemail.com ogg.k.ogg.k at googlemail.com
Tue Dec 16 11:00:55 PST 2008


> FWIW, I'm no happy about adding 4K to the minimum size of the vorbis
> headers.

It might not be necessary ?
There is a page break after the last header, so when resizing the
header, one doesn't have to repaginate the data. Packet numbering
doesn't change since it's just one packet that grows. Pages are
numbered, so that's the only thing that might break, right ? Have I
forgotten one fatal detail ?

If not, then maybe one could add a couple empty pages with no
actual packets in them - granpos them to -1, but don't start anything
on them at all. Since they're partial, the decoder will wait to get a
page-with-finished-packet before decoding the segments, and the
first couple pages (twice 29 bytes) will be effectively ignored in the
data reconstruction.

When wanting to grow the comments header, if it spawns another
page due to its size, just kill off one of the empty pages, and you've
still got a pagination without hole.

Of course, if it was so simple, it would have been done already, but
you never know...


More information about the Vorbis-dev mailing list