[xiph-commits] r12198 - trunk/vorbis-tools/oggenc
conrad at svn.xiph.org
conrad at svn.xiph.org
Sat Dec 9 21:04:48 PST 2006
Author: conrad
Date: 2006-12-09 21:04:46 -0800 (Sat, 09 Dec 2006)
New Revision: 12198
Modified:
trunk/vorbis-tools/oggenc/flac.c
Log:
Fix OggFLAC input file detection in oggenc. This was only checking for the
old flac0 mapping, but not the current mapping
Modified: trunk/vorbis-tools/oggenc/flac.c
===================================================================
--- trunk/vorbis-tools/oggenc/flac.c 2006-12-10 03:57:23 UTC (rev 12197)
+++ trunk/vorbis-tools/oggenc/flac.c 2006-12-10 05:04:46 UTC (rev 12198)
@@ -46,7 +46,9 @@
{
if (len < 32) return 0;
- return memcmp(buf, "OggS", 4) == 0 && flac_id(buf+28, len - 28);
+ return memcmp(buf, "OggS", 4) == 0 &&
+ (memcmp (buf+28, "\177FLAC", 5) || flac_id(buf+28, len - 28));
+
}
More information about the commits
mailing list