
Michael Niedermayer wrote:
so there are several choices: 1. store as 32bit or store as variable length but limit to 32bit in the spec fits in int "only" 1<<32 codecs if the codec/source/destination stream doesnt support a 32bit id then we must convert
so 0x1 mp3 0x2 mpeg4 0x3 theora 0x4 vorbis 0x5 pick one as you wish You'll have to convert, you need to have the codec table handy when manually inspecting a file, first come first served applies, you need to parse this information once at load so having simple int compare or multiple byte compare doesn't mean much. You may suggest to keep the code to the least number of bytes and within a certain limit (8,16?). "vorbis" "theora" "dirac" "mp3" "mpeg4" "h264" etc etc etc looks too insane? lu -- Luca Barbato Gentoo/linux Gentoo/PPC http://dev.gentoo.org/~lu_zero