[vorbis] What tags are allowed in ogg files?

Segher Boessenkool segher at chello.nl
Tue Jul 30 17:43:36 PDT 2002



Michael Smith wrote:
> 
> Still on my TODO list (for vorbiscomment/vcedit, NOT for libvorbis -
> libvorbis will continue to write non-padded headers).

It's not needed in a library; an encoder based on libvorbis can easily
do it itself.

Let's try encoder_example:

    vorbis_analysis_headerout(&vd,&vc,&header,&header_comm,&header_code);
    /* new code here */
        header_comm.packet = realloc(header_comm.packet,
                                     header_comm.bytes + 1000);
    /* end of new code */
    ogg_stream_packetin(&os,&header);
    ogg_stream_packetin(&os,&header_comm);
    ogg_stream_packetin(&os,&header_code);

That's all you need.

Cheers,

Segher

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