[Vorbis-dev] Trivial 1.1 rc1 patch for ogginfo
Patrik Rådman
pradman
Thu Jul 8 13:23:29 PDT 2004
Michael Smith <msmith at xiph.org> wrote:
> On Thursday 08 July 2004 17:06, Kyungjoon Lee wrote:
> > One liner to add 1.1 rc1 to list of recognized files.
>
> Committed, thanks.
I see you also applied part of my previous patch, though without any
mention of it in the log message... Below is an updated patch with
the rest, i.e. the OGM type streams.
--- ogginfo2.c (revision 7054)
+++ ogginfo2.c (working copy)
@@ -574,6 +574,12 @@
other_start(stream, "speex");
else if(packet.bytes >= 7 && memcmp(packet.packet, "\200theora", 7)==0)
other_start(stream, "Theora");
+ else if(packet.bytes >= 9 && memcmp(packet.packet, "\001video\0\0\0", 9)==0)
+ other_start(stream, "OGM video");
+ else if(packet.bytes >= 9 && memcmp(packet.packet, "\001audio\0\0\0", 9)==0)
+ other_start(stream, "OGM audio");
+ else if(packet.bytes >= 9 && memcmp(packet.packet, "\001text\0\0\0\0", 9)==0)
+ other_start(stream, "OGM subtitles");
else
other_start(stream, NULL);
--
Patrik R?dman
patrik at iki dot fi
http://www.iki.fi/patrik/
More information about the Vorbis-dev
mailing list