[xiph-commits] r14471 - trunk/vorbis-tools/ogginfo
ivo at svn.xiph.org
ivo at svn.xiph.org
Mon Feb 11 11:46:56 PST 2008
Author: ivo
Date: 2008-02-11 11:46:56 -0800 (Mon, 11 Feb 2008)
New Revision: 14471
Modified:
trunk/vorbis-tools/ogginfo/ogginfo2.c
Log:
Proper detection of Ogg FLAC.
Modified: trunk/vorbis-tools/ogginfo/ogginfo2.c
===================================================================
--- trunk/vorbis-tools/ogginfo/ogginfo2.c 2008-02-11 18:19:43 UTC (rev 14470)
+++ trunk/vorbis-tools/ogginfo/ogginfo2.c 2008-02-11 19:46:56 UTC (rev 14471)
@@ -798,19 +798,19 @@
}
else if(packet.bytes >= 7 && memcmp(packet.packet, "\x01vorbis", 7)==0)
vorbis_start(stream);
- else if(packet.bytes >= 7 && memcmp(packet.packet, "\x80theora", 7)==0)
+ else if(packet.bytes >= 7 && memcmp(packet.packet, "\x80theora", 7)==0)
theora_start(stream);
- else if(packet.bytes >= 8 && memcmp(packet.packet, "OggMIDI\0", 8)==0)
+ else if(packet.bytes >= 8 && memcmp(packet.packet, "OggMIDI\0", 8)==0)
other_start(stream, "MIDI");
- else if(packet.bytes >= 4 && memcmp(packet.packet, "fLaC", 4)==0)
+ else if(packet.bytes >= 4 && memcmp(packet.packet, "\177FLAC", 5)==0)
other_start(stream, "FLAC");
- else if(packet.bytes >= 8 && memcmp(packet.packet, "Speex ", 8)==0)
+ else if(packet.bytes >= 8 && memcmp(packet.packet, "Speex ", 8)==0)
other_start(stream, "speex");
- else if(packet.bytes >= 8 && memcmp(packet.packet, "fishead\0", 8)==0)
+ else if(packet.bytes >= 8 && memcmp(packet.packet, "fishead\0", 8)==0)
other_start(stream, "skeleton");
- else if(packet.bytes >= 4 && memcmp(packet.packet, "KW-DIRAC", 8)==0)
+ else if(packet.bytes >= 4 && memcmp(packet.packet, "KW-DIRAC", 8)==0)
other_start(stream, "dirac");
- else if(packet.bytes >= 7 && memcmp(packet.packet, "\x80kate\0\0\0\0", 8)==0)
+ else if(packet.bytes >= 7 && memcmp(packet.packet, "\x80kate\0\0\0\0", 8)==0)
other_start(stream, "kate");
else
other_start(stream, NULL);
More information about the commits
mailing list