[vorbis] What tags are allowed in ogg files?

Michael Smith msmith at labyrinth.net.au
Tue Jul 30 22:24:12 PDT 2002



At 02:43 AM 7/31/02 +0200, you wrote:
>
>
>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.

I know how to do it, that's pretty obvious. I was just saying that I 
wasn't going to add explicit support in libvorbis.

Obviously, you also need a header_comm.bytes += 1000 in there.

Michael

<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