[NUT-devel] vorbis global 3 to 1 header mess
Luca Barbato
lu_zero at gentoo.org
Tue Jul 18 23:19:13 CEST 2006
Michael Niedermayer wrote:
>
> the comment header looks like:
>
> 1) [vendor_length] = read an unsigned integer of 32 bits
> 2) [vendor_string] = read a UTF-8 vector as [vendor_length] octets
> 3) [user_comment_list_length] = read an unsigned integer of 32 bits
> 4) iterate [user_comment_list_length] times {
> 5) [length] = read an unsigned integer of 32 bits
> 6) this iteration's user comment = read a UTF-8 vector as [length] octets
> }
> 7) [framing_bit] = read a single bit as boolean
> 8) if ( [framing_bit] unset or end-of-packet ) then ERROR
>
> an they all have a "vorbis" in front of them ...
>
to spare you another read theora is almost the same (but the initial
byte are different and you have theora instead of vorbis as string)
lu
--
Luca Barbato
Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero
More information about the NUT-devel
mailing list