[xiph-commits] r15041 - trunk/vorbis-tools/ogginfo
conrad at svn.xiph.org
conrad at svn.xiph.org
Mon Jun 16 03:17:09 PDT 2008
Author: conrad
Date: 2008-06-16 03:17:08 -0700 (Mon, 16 Jun 2008)
New Revision: 15041
Modified:
trunk/vorbis-tools/ogginfo/ogginfo2.c
Log:
fit kate magic into the first 8 bytes. Patch by ogg.k.ogg.k
Modified: trunk/vorbis-tools/ogginfo/ogginfo2.c
===================================================================
--- trunk/vorbis-tools/ogginfo/ogginfo2.c 2008-06-15 10:31:44 UTC (rev 15040)
+++ trunk/vorbis-tools/ogginfo/ogginfo2.c 2008-06-16 10:17:08 UTC (rev 15041)
@@ -698,7 +698,7 @@
}
#else
/* if we're not building against libkate, do some limited checks */
- if (packet.bytes<64 || memcmp(packet.packet+1, "kate\0\0\0\0", 8)) {
+ if (packet.bytes<64 || memcmp(packet.packet+1, "kate\0\0\0", 7)) {
warn(_("Warning: packet %d does not seem to be a kate header - "
"invalid kate stream (%d)\n"),
packet.packetno, stream->num);
@@ -1063,7 +1063,7 @@
other_start(stream, "dirac");
else if(packet.bytes >= 8 && memcmp(packet.packet, "KW-DIRAC", 8)==0)
other_start(stream, "dirac (old style)");
- else if(packet.bytes >= 9 && memcmp(packet.packet, "\x80kate\0\0\0\0", 9)==0)
+ else if(packet.bytes >= 8 && memcmp(packet.packet, "\x80kate\0\0\0", 8)==0)
kate_start(stream);
else
other_start(stream, NULL);
More information about the commits
mailing list